Created
October 25, 2017 18:39
-
-
Save zaidepilef/c70e24202583228909e82159c09581c3 to your computer and use it in GitHub Desktop.
Controller que envia el lista en json para poblar en la vista
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public JsonResult LlamarJson(BitacoraCotizacionHogarViewModel model) | |
{ | |
IList<CotizacionModel> listadoBitacora = new List<CotizacionModel>(); | |
//listadoBitacora = BuscaBitacoraCotizacion(model); | |
//var cotizacionesList = result.ToDataSourceResult(request); | |
foreach (var item in BuscaBitacoraCotizacion(model)) | |
{ | |
CotizacionModel laCotizacion = new CotizacionModel(); | |
laCotizacion = item; | |
//CorredorCanalModel corredorCanalModel = CorredorCanalFacade.ObtenerCorredorCorredorRut(item.RutCorredor); | |
//CotizacionRiesgoModel cotizacionRiesgoModel = CotizacionRiesgoFacade.Leer(item.CotizacionId); | |
//ProductoModel productoModel = ProductoFacade.Leer(cotizacionRiesgoModel.CodigoProducto); | |
laCotizacion.Comision = 0; | |
laCotizacion.NombreProducto = "sin producto"; | |
laCotizacion.SucursalPoliza = "Casa Matriz"; | |
laCotizacion.Cobertura = "Una cobertura"; | |
listadoBitacora.Add(laCotizacion); | |
} | |
return Json(listadoBitacora); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment