示例#1
0
 public IActionResult DeleteLecture(int id)
 {
     if (!_lectureService.Delete(id))
     {
         return(BadRequest());
     }
     return(Ok());
 }
示例#2
0
        public IActionResult Delete(int id)
        {
            var result = _lectureService.Delete(id);

            if (!result)
            {
                return(BadRequest());
            }

            return(Ok());
        }
示例#3
0
        public async Task <IActionResult> Delete(int id)
        {
            var result = await LectureService.Delete(id);

            return(Ok(result));
        }
示例#4
0
 public ActionResult Delete(Guid id)
 {
     _lectureService.Delete(id);
     return(NoContent());
 }