public IActionResult DeleteLecture(int id) { if (!_lectureService.Delete(id)) { return(BadRequest()); } return(Ok()); }
public IActionResult Delete(int id) { var result = _lectureService.Delete(id); if (!result) { return(BadRequest()); } return(Ok()); }
public async Task <IActionResult> Delete(int id) { var result = await LectureService.Delete(id); return(Ok(result)); }
public ActionResult Delete(Guid id) { _lectureService.Delete(id); return(NoContent()); }