public ActionResult Cancel(int?id) { if (OrderHelper.Canceled((int)id)) { return(Content("success")); } return(Content("failure")); }