示例#1
0
        public async Task <IActionResult> GetUsers()
        {
            var users = await _repo.GetUsers();

            var usersToReturn = _mapper.Map <IEnumerable <UserForListDto> >(users);

            return(Ok(usersToReturn));
        }