public IList <Membership> GetMembershipList(int?teamId) { Team team = meProvider.GetManagedTeam(teamId); return(dbContext.Membership .Where(x => x.TeamId == team.Id) .Include(x => x.Team) .Include(x => x.Person) .ToList()); }
public IList <Event> GetEventList(int?teamId) { Team team = meProvider.GetManagedTeam(teamId); return(dbContext.Event .Where(x => x.TeamId == team.Id && x.Date > DateTime.Now.AddHours(-1)) .OrderBy(x => x.Date) .Take(50) .Include(x => x.Team) .ToList()); }
public void OnGet(int?teamId) { Team team = meProvider.GetManagedTeam(teamId); Membership = new Models.Membership() { Team = team, TeamId = team.Id, Person = new Person() }; }
public void OnGet(int?teamId) { Team = meProvider.GetManagedTeam(teamId); }
public void OnGet(int?teamId) { Team = meProvider.GetManagedTeam(teamId); Event = repo.GetEventList(Team?.Id); }
public void OnGet(int?teamId) { Team = meProvider.GetManagedTeam(teamId); Membership = repo.GetMembershipList(Team?.Id); }