Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
        public void OnGet(int?teamId)
        {
            Team team = meProvider.GetManagedTeam(teamId);

            Membership = new Models.Membership()
            {
                Team   = team,
                TeamId = team.Id,
                Person = new Person()
            };
        }
Ejemplo n.º 4
0
 public void OnGet(int?teamId)
 {
     Team = meProvider.GetManagedTeam(teamId);
 }
Ejemplo n.º 5
0
 public void OnGet(int?teamId)
 {
     Team  = meProvider.GetManagedTeam(teamId);
     Event = repo.GetEventList(Team?.Id);
 }
Ejemplo n.º 6
0
 public void OnGet(int?teamId)
 {
     Team       = meProvider.GetManagedTeam(teamId);
     Membership = repo.GetMembershipList(Team?.Id);
 }