public void AddScheduleToVideoWall(IAddScheduleToVideoWallView inForm, VideoWall wall,
                                           IRepository <VideoWall> videoWallRepository, IRepository <Schedule> scheduleRepository)
        {
            var scheduleName = inForm.NameOfSchedule;
            var schedule     = scheduleRepository.FindBy(x => x.Name == scheduleName);

            wall.Status = VideoWallStatus.USED;
            wall.Schedules.Add(schedule);
            videoWallRepository.Update(wall);
        }
Example #2
0
 public void ShowAddScheduleToVideoWall(IAddScheduleToVideoWallView inForm)
 {
     inForm.ShowViewModal();
 }
Example #3
0
 public void AddScheduleToVideoWall(IAddScheduleToVideoWallView inForm, VideoWall wall)
 {
     _videoWallController.AddScheduleToVideoWall(inForm, wall, _videoWallRepository, _scheduleRepository);
 }