public ActionResult Index() { var listaDto = servicio.GetLista(); var listaVm = mapper.Map <List <ProveedorListViewModel> >(listaDto); return(View(listaVm)); }
private void frmProveedor_Load(object sender, EventArgs e) { try { mapper = VeterinariaMVC.Mapeador.Mapeador.CrearMapper(); lista = servicio.GetLista(); MostrarDatosEnGrilla(); } catch (Exception) { throw; } }