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