Exemple #1
0
        public async Task <List <PoliceResource> > GetAll()
        {
            var policeList = await _policeService.GetAll();

            var policeListReturn = AutoMapper.Mapper.Map <List <PoliceResource> >(policeList);

            return(policeListReturn);
        }
Exemple #2
0
        public IActionResult UsersList()
        {
            List <Citizen> users = _policeService.GetAll();

            return(View(users));
        }