示例#1
0
        // GET: /Brand/
        public ActionResult StoreList(int brandId = 0, int areaId = 0)
        {
            try
            {
                SupplierBrandBLL supplierBLL = new SupplierBrandBLL();

                var page = new PageDTO()
                {
                    PageIndex = PageNo, PageSize = DefaultPageSize
                };

                var result = supplierBLL.GetStoreListByBrandId(brandId, areaId, LanguageEnum.TraditionalChinese, page);

                ViewBag.Brand = supplierBLL.GetBrandById(brandId);

                ViewBag.ProvinceList = CountryBLL.GetProvinceList(852, LanguageEnum.TraditionalChinese);

                ViewBag.AreaId = areaId;

                return(View(result));
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            return(View());
        }
示例#2
0
        public ActionResult AddStore(int brandId = 0, int id = 0)
        {
            try
            {
                SupplierBrandBLL supplierBLL = new SupplierBrandBLL();

                StoreModel model = supplierBLL.GetStoreById(id);

                ViewBag.Brand = supplierBLL.GetBrandById(brandId);

                ViewBag.ProvinceList = CountryBLL.GetProvinceList(852, LanguageEnum.TraditionalChinese);

                ViewBag.Store = model;

                return(View());
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            return(View());
        }