public JsonResult Delete(int id) { Car car = myService.GetById(id); myService.Delete(car); myService.Commit(); return(Json("success", JsonRequestBehavior.AllowGet)); }