public JsonResult CodeTypeDelete(string codetype) { var item = COD.FindItemByParam <CodeTypeItem>(new DbParam().Add("CodeType", codetype), "*"); COD.Delete(item); return(Json(new { result = "success" }, JsonRequestBehavior.AllowGet)); }
public JsonResult AccountDelete(int id) { COD.Delete <AccountItem>(id); return(Json(new { result = "success" }, JsonRequestBehavior.AllowGet)); }