public async Task <IActionResult> Delete(Guid currentDocId) { if (!await CheckIfUserIsFosSupervisor(currentDocId)) { return(Forbid()); } bool result = await _syllabusService.Delete(currentDocId); if (result) { return(Ok()); } return(NotFound()); }
/// <summary> /// 删除 /// </summary> /// <param name="ids"></param> /// <returns></returns> public ActionResult Delete(string ID) { return(JResult(ISyllabusService.Delete(ID))); }