public IActionResult Get() { IEnumerable <User> users = usersLogic.GetUsers(); IEnumerable <UserDTO> usersToReturn = users.Select(x => new UserDTO(x)); return(Ok(usersToReturn)); }
public IEnumerable <User> GetUsers() { var users = _usersLogic.GetUsers(); return(users); }