public List <Team> GetAllTeams(GetAllTeamsRequest request) { List <Team> teams = null; if (request != null) { var dataAccess = new TeamDataAccess(request.Context); var teamsQuery = dataAccess.GetAll(); teams = teamsQuery.ToList(); } return(teams); }