using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using BLL; using BLL.DAL; using Common; using Lib; using Model; namespace wms.Areas.BasicInfo.Controllers { public class PackingController : MasterPage { // GET: BasicInfo/Packing public ActionResult Index() { return View(); } public ActionResult AddPacking() { string PackingCode = Request.QueryString.Get("PackingCode"); if (PackingCode.IsEmpty()) { ViewBag.Admin = new Packing(); } else { DALPacking provider = new DALPacking(); Packing entity = provider.GetModel(PackingCode); entity = entity == null ? new Packing() : entity; ViewBag.Admin = entity; } return View(); } } }