public IEnumerable <UserDTO> GetUsers() { IEnumerable <RentUser> users = _userAuthService.GetUsers(); List <UserDTO> userDTOs = new List <UserDTO>(); foreach (RentUser user in users) { userDTOs.Add(new UserDTO() { Id = user.Id, FirstName = user.FirstName, LastName = user.LastName, UserName = user.UserName }); } return(userDTOs); }