Example #1
0
        public IActionResult Get()
        {
            var list   = _administradoraService.GetAll();
            var vmList = _mapper.Map <IEnumerable <AdministradoraViewModel> >(list);

            return(Ok(vmList));
        }
Example #2
0
        public async Task <ActionResult <IEnumerable <AdministradoraViewModel> > > GetAll()
        {
            var listaAdministradora = _mapper.Map <IEnumerable <AdministradoraViewModel> >(await _dbAdministradora.GetAll());

            return(CustomResponse(listaAdministradora));
        }