public object DeleteCategory(String id) { return(categoryRep.Delete(id)); }
public ActionResult Delete(Guid id) { result.resultint = cr.Delete(id); return(RedirectToAction("List", new { @mesaj = result.resultint.UserMessage })); }
public ActionResult Delete(int id) { result = cr.Delete(id); return(RedirectToAction("List", "Category")); }