예제 #1
0
        public bool DoesSomeWallUsesSchedule(IRemoveScheduleView inForm, IRepository <VideoWall> repository)
        {
            var scheduleName = inForm.NameOfSchedule.Trim();
            var use          = repository.FindBy(x => x.Schedules.Count(schedule => schedule.Name.Equals(scheduleName)) != 0);

            return(use != null);
        }
예제 #2
0
 public void ShowRemoveSchedule(IRemoveScheduleView inForm)
 {
     inForm.ShowViewModal();
 }
예제 #3
0
        public void RemoveSchedule(IRemoveScheduleView inForm, IRepository <Schedule> repository)
        {
            var nameOfSchedule = inForm.NameOfSchedule;

            repository.Delete(repository.FindBy(x => x.Name == nameOfSchedule));
        }
예제 #4
0
 public bool DoesSomeWallUseSchedule(IRemoveScheduleView inForm)
 {
     return(_videoWallController.DoesSomeWallUsesSchedule(inForm, _videoWallRepository));
 }
예제 #5
0
 public void RemoveSchedule(IRemoveScheduleView inForm)
 {
     _scheduleController.RemoveSchedule(inForm, _scheduleRepository);
 }