Exemplo n.º 1
0
        public void CheckingTime(DateTime date1, DateTime date2)
        {
            var scheduleProgramme = _scheduleRepository.CheckForTranslation(date1, date2);

            if (scheduleProgramme != null)
            {
                foreach (var item in scheduleProgramme)
                {
                    _scheduleRepository.Remove(item);
                }
            }
        }
        public bool Delete(long id)
        {
            var schedule = _scheduleRepository.Get(id);

            if (schedule == null)
            {
                return(false);
            }

            _scheduleRepository.Remove(schedule);

            return(true);
        }