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