예제 #1
0
 public ActionResult Edit(tb_DepotInfo depotinfo, FormCollection form)//传递信息
 {
     if (ModelState.IsValid)
     {
         UpdateModel(depotinfo, new[] { "Name", "Type", "Address", "Area" });
         depotBLL.Modify(depotinfo);
         return(RedirectToAction("Depot"));
     }
     else
     {
         return(View("Edit", depotinfo));
     }
 }
예제 #2
0
 public ActionResult Create(tb_DepotInfo depotinfo, FormCollection form)//传递信息
 {
     depotBLL.Add(depotinfo);
     return(RedirectToAction("Depot"));
 }