public async Task <UserDetailsDTO> GetUserDetails(string userID) { var details = await _queries.GetUserDetailsAsync(userID); if (details == null) { throw new Exception("Can't find user details"); } else { return(details); } }
public async Task <UserDetailsDTO> GetUserDetails(string userID) { var details = await _queries.GetUserDetailsAsync(userID); if (details == null) { throw new Exception("Can't find user details"); } else { return(details); } }