public ActionResult RemoveOrderData(long id) { Func <ExtResult> fun = () => { ExtResult ret = new ExtResult(); dalorderdata.Delete(id); ret.success = true; return(ret); }; return(base.Remove(fun)); }
public ActionResult Delete(int id, Order irrelavent) { try { Order order = orderDb.Get(id); orderDb.Delete(order); return(RedirectToAction(ActionNameIndex)); } catch { return(Delete(id)); } }