コード例 #1
0
 public ActionResult <string> Delete(int id)
 {
     try
     {
         return(Ok(_service.Delete(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
コード例 #2
0
 public void Delete(int id)
 {
     _service.Delete(id);
 }