예제 #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());
        }
예제 #2
0
파일: EventRepo.cs 프로젝트: tbela71/megyek
        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());
        }
예제 #3
0
        public void OnGet(int?teamId)
        {
            Team team = meProvider.GetManagedTeam(teamId);

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