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); }
public void ShowAddScheduleToVideoWall(IAddScheduleToVideoWallView inForm) { inForm.ShowViewModal(); }
public void AddScheduleToVideoWall(IAddScheduleToVideoWallView inForm, VideoWall wall) { _videoWallController.AddScheduleToVideoWall(inForm, wall, _videoWallRepository, _scheduleRepository); }