public ActionResult Save() { BrandModel brand = new BrandModel(); brand.status = BaseModel.STATUS_ACTIVATE; brand = ObjectUtil.Eval(brand, Request.Params, "", ""); if (string.IsNullOrEmpty(brand.brandID)) { brand.brandID = brand.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(brand, "连锁品牌"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }