public JsonResult CodeTypeUpdate(string codetype, FormCollection formValues) { var item = COD.FindItemByParam <CodeTypeItem>(new DbParam().Add("CodeType", codetype), "*"); UpdateModel(item); COD.Update(item); return(Json(new { result = "success" }, JsonRequestBehavior.AllowGet)); }
public JsonResult AccountUpdate(int id, FormCollection formValues) { var item = COD.FindItemById <AccountItem>(id); UpdateModel(item); COD.Update(item); return(Json(new { result = "success" }, JsonRequestBehavior.AllowGet)); }