예제 #1
0
 public IActionResult Delete(int id)
 {
     if (!id.Equals(""))
     {
         var _exam = _examServices.GetExamById(id);
         if (_exam != null)
         {
             _examServices.DeleteExam(_exam);
             _examServices.Commit();
             return(Ok());
         }
         else
         {
             return(NotFound());
         }
     }
     else
     {
         return(BadRequest());
     }
 }