コード例 #1
0
 public ActionResult Delete(int id)
 {
     try
     {
         _vehicleBusiness.Delete(id);
         return(Ok());
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }
コード例 #2
0
 public IActionResult Delete(long id)
 {
     _vehicleBusiness.Delete(id);
     return(NoContent());
 }
コード例 #3
0
 public ActionResult DeleteConfirmed(int id)
 {
     _vehicleBusiness.Delete(id);
     return(RedirectToAction("Index"));
 }