예제 #1
0
        public async Task <IActionResult> GetAllUsers()
        {
            var users = await _repo.GetAllUsers();

            if (users == null)
            {
                return(NotFound());
            }
            var result = _mapper.Map <IEnumerable <UserForReturnDto> >(users);

            return(Ok(result));
        }