public async Task <IActionResult> GetAllTeamForUserAsync() { try { var currentUser = await GetCurrentUser(); var repo = await teamRepo.GetAllTeamsForUser(currentUser.Id); if (repo != null) { return(Ok(repo)); } //not authorized?? or not found?? return(NotFound()); } catch (Exception) { //log?? return(BadRequest()); } }