示例#1
0
        public bool RemoveProgramScheduleById(int id)
        {
            var program = _programScheduleRepository.Find(id);

            if (program != null)
            {
                _programTypeService.RemoveProgramTypeById(program.ProgramTypeId);
                return(true);
            }

            else
            {
                return(false);
            }
        }
 public IActionResult Delete(int id)
 {
     _programTypeService.RemoveProgramTypeById(id);
     return(NoContent());
 }