Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }