Skip to content

Instantly share code, notes, and snippets.

@zaidepilef
Created October 25, 2017 18:42
Show Gist options
  • Save zaidepilef/886d6df6e32a74015507641f6d2979ed to your computer and use it in GitHub Desktop.
Save zaidepilef/886d6df6e32a74015507641f6d2979ed to your computer and use it in GitHub Desktop.
private IList<CotizacionModel> BuscaBitacoraCotizacion(BitacoraCotizacionHogarViewModel model)
{
IList<CotizacionModel> listadoBitacora = new List<CotizacionModel>();
if (model.FechaTermino != null)
model.FechaTermino = model.FechaTermino.Value.AddDays(1);
CotizacionModel cotizacionModel = new CotizacionModel();
cotizacionModel.CodigoCanal = GetUser().CodigoCanal;
cotizacionModel.CodigoEstado = model.Estado;
cotizacionModel.NumeroCotizacion = model.NumeroCotizacion;
cotizacionModel.NumeroPoliza = model.NumeroPoliza;
cotizacionModel.RutAsegurado = model.RutPropietario;
cotizacionModel.RutCorredor = model.RutCorredor;
cotizacionModel.Filtro = new FiltroCotizacionModel();
cotizacionModel.Filtro.FechaInicio = model.FechaInicio;
cotizacionModel.Filtro.FechaTermino = model.FechaTermino;
listadoBitacora = CotizacionFacade.ObtenerCotizaciones(cotizacionModel);
return listadoBitacora;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment