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)); } }
public ActionResult Create(tb_DepotInfo depotinfo, FormCollection form)//传递信息 { depotBLL.Add(depotinfo); return(RedirectToAction("Depot")); }