예제 #1
0
 //
 // POST: /Brand/Edit/
 public ActionResult Edit(Brand brand)
 {
     bool bResult = BrandService.Save(brand);
     string msg = bResult ? "修改成功" : "修改失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet);
 }
예제 #2
0
 public ActionResult Create(Brand brand)
 {
     bool bResult = BrandService.Add(brand);
     string msg = bResult ? "新增成功" : "新增失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet);
 }