Example #1
0
        public async Task <IActionResult> GetAllUsersExceptAdmin()
        {
            var users = await _repo.GetAllUsersEceptAdmin();

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

            return(Ok(usersToReturn));
        }