using BLL; using Common; using Lib; using Model; using System.Web.Mvc; namespace WMS.Areas.BasicInfo.Controllers { public class StorageController : MasterPage { [LoginFilter] public ActionResult Index() { return View(); } [LoginFilter] public ActionResult Add() { string StorageNo = Request.QueryString.Get("StorageNo"); if (StorageNo.IsEmpty()) { ViewBag.Admin = new Area(); } else { IDALArea provider = new DALArea(); Area entity = provider.GetModel(StorageNo); entity = entity == null ? new Area() : entity; ViewBag.Admin = entity; } return View(); } } }