Пример #1
0
        public ActionResult Index()
        {
            var listaDto = servicio.GetLista();
            var listaVm  = mapper.Map <List <MascotaListViewModel> >(listaDto);


            return(View(listaVm));
        }
Пример #2
0
 private void frmMascota_Load(object sender, EventArgs e)
 {
     try
     {
         mapper = VeterinariaMVC.Mapeador.Mapeador.CrearMapper();
         lista  = servicio.GetLista();
         MostrarDatosEnGrilla();
     }
     catch (Exception)
     {
         throw;
     }
 }