public ActionResult Delete(int id) { try { _vehicleBusiness.Delete(id); return(Ok()); } catch (Exception e) { return(StatusCode(500, e.Message)); } }
public IActionResult Delete(long id) { _vehicleBusiness.Delete(id); return(NoContent()); }
public ActionResult DeleteConfirmed(int id) { _vehicleBusiness.Delete(id); return(RedirectToAction("Index")); }