public ActionResult Delete(int id) { var app = new ServiceReference.ContractClient(); app.DeleteCategory(id); return(RedirectToAction("GetAll")); }