コード例 #1
0
        public ActionResult GoodsBrand()
        {
            var loginUser = (UserInfo)Session["LoginUser"];

            var goodList = _manager.GetAllBrand(loginUser.UserId);

            return(View(goodList));
        }
コード例 #2
0
        /// <summary>
        /// 商品品牌页面
        /// </summary>
        /// <returns></returns>
        public ActionResult GoodsBrand()
        {
            Guid managerId = (Guid)ViewBag.ManagerId;

            var goodList = _manager.GetAllBrand(managerId);

            return(View(goodList));
        }
コード例 #3
0
        /// <summary>
        /// 添加优惠券
        /// </summary>
        /// <returns></returns>
        public ActionResult AddNewCoupon()
        {
            var loginUser = (UserInfo)ViewBag.User;

            var typelist  = _user.GetTypeList();
            var suppliers = _user.GetSupplierList(loginUser.UserId);
            var BrandList = _good.GetAllBrand(loginUser.UserId);

            ViewBag.TypeList  = typelist;
            ViewBag.Supplier  = suppliers;
            ViewBag.BrandList = BrandList;
            return(View());
        }