public async Task <ActionResult <UserModel> > GetUser(int userId) { if (_userservice.findById(userId) == null) { return(NotFound("User not Found.")); } return(await Task.FromResult(_userBridge.mapToUserFrom(_userservice.findById(userId)))); }
public async Task <ActionResult <UserModel> > GetUser(int userId) { if (_userservice.findById(userId) == null) { return(NotFound("User not Found.")); } return(await Task.FromResult(_userBridge.mapToUserFrom(_userservice.findById(userId)))); }