コード例 #1
0
 public ActionResult Edit(Edit_M model)
 {
     if (ModelState.IsValid)
     {
         if (reportServices.Update(model.ToModel()))
         {
             return(RedirectToAction("Index"));
         }
         else
         {
             return(Alert("保存失败", -1));
         }
     }
     else
     {
         InitForm("编辑报表");
         return(View(model));
     }
 }