public ActionResult DeleteConfirmed(int id) { Share share = shareManager.Find(x => x.ShareId == id); shareManager.Delete(share); return(RedirectToAction("Index")); }
public bool Delete(int id) { _manager.ClearBrokenRuleMessages(); if (!_manager.Delete(id)) { this.AddBrokenRuleMessages(_manager.BrokenRuleMessages); return(false); } return(true); }