public virtual ActionResult DeleteConfirmed(int id) { _transporterService.DeleteById(id); return(RedirectToAction("Index")); //repository.Transporter.DeleteByID(id); //return RedirectToAction("Index"); }
public ActionResult EditingInline_Destroy([DataSourceRequest] DataSourceRequest request, Transporter transporter) { if (transporter != null) { transportService.DeleteById(transporter.TransporterID); transportService.DeleteTransporter(transporter); } return(Json(ModelState.ToDataSourceResult())); }