コード例 #1
0
        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());
        }
コード例 #2
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="ids"></param>
 /// <returns></returns>
 public ActionResult Delete(string ID)
 {
     return(JResult(ISyllabusService.Delete(ID)));
 }