Пример #1
0
        // GET: 物料对比
        public ActionResult Index()
        {
            Sidebar();
            PlasBll.MemberCenterBll mbll = new PlasBll.MemberCenterBll();
            var    userName = string.Empty;
            string errMsg   = string.Empty;

            if (AccountData != null)
            {
                userName = AccountData.UserID;
            }
            var list = new List <PlasModel.Physics_ContrastModel>();

            if (!string.IsNullOrWhiteSpace(userName))
            {
                list = mbll.GetPhysics_Contrast(userName, ref errMsg);
            }
            ViewBag.ContrastList = list;
            return(View());
        }