Esempio n. 1
0
        public async Task <IActionResult> GetAllByActive([FromServices] INurseRepository repository)
        {
            var result = await repository.GetAllActive(true);

            return(Ok(_mapper.Map <IEnumerable <NurseViewModel> >(result)));
        }