Exemplo n.º 1
0
 private void CreateExamplePlayerGroupSchedule(int account, int playergroupid, int screenid)
 {
     try
     {
         IPlayerGroupScheduleRepository schedulerep = new EntityPlayerGroupScheduleRepository();
         for (int i = 0; i < 7; i += 1)
         {
             PlayerGroupSchedule schedule = new PlayerGroupSchedule();
             schedule.PlayerGroupID = playergroupid;
             schedule.ScreenID      = screenid;
             schedule.Day           = i;
             schedule.Hour          = 0;
             schedule.Minute        = 0;
             schedulerep.CreatePlayerGroupSchedule(schedule);
         }
     }
     catch { }
 }
Exemplo n.º 2
0
        public PlayerGroupSchedule GetPlayerGroupSchedule(int id)
        {
            PlayerGroupSchedule playergroupschedule = db.PlayerGroupSchedules.Find(id);

            return(playergroupschedule);
        }
Exemplo n.º 3
0
 public void CreatePlayerGroupSchedule(PlayerGroupSchedule playergroupschedule)
 {
     db.PlayerGroupSchedules.Add(playergroupschedule);
     db.SaveChanges();
 }