Пример #1
0
 public GoodsController(IGoodService goodService, ICookieConsumer storage, IRecentlyViewedProvider viewedProvider)
     : base(storage)
 {
     _viewedProvider = viewedProvider;
     _goodService = goodService;
     _sizeStorageViewed = 20;
 }
Пример #2
0
        public CatalogController(ICategoryService categoryService, ICookieConsumer storage)
            : base(storage)
        {
 
            _categoryService = categoryService;
            _sizeStorageViewed = 5;
        }
Пример #3
0
 public AccountController(IUserAppService userSvc,ILogWriterSql log, ICookieConsumer storage, IAccountService account, IUnitOfWorkIdentity unit, IClearUserSession userSession)
     : base(storage)
 {
     _userSvc = userSvc;
     _unit = unit;
     _log = log;
     _account = account;
     _userSession = userSession;
 }
Пример #4
0
 public CartController(ICookieConsumer storage, ICartProvider<UserOrderModel> cartProvider, IPurchaseService purchaseService,
     IUserAppService user, ILogWriterSql log)
     : base(storage)
 {
     _user = user;
     _log = log;
     _cartProvider = cartProvider;
     _purchaseService = purchaseService;
 }
Пример #5
0
        public CartController(ISalePosRepository salePos, ISaleRepository sale, IGoodsRepository good, IUnitOfWork unit,
                              IClassificationGoodRepository typeGood, ICookieConsumer storage, ICartProvider <UserOrder> provider)
            : base(storage)
        {
            _provider = provider;


            _typeGood = typeGood;
            _goods    = good;
            _unit     = unit;
            _salePos  = salePos;
            _sale     = sale;
        }
Пример #6
0
        public void OnActionExecuted(ActionExecutedContext filterContext)
        {
            ICookieConsumer storage = DependencyResolver.Current.GetService <ICookieConsumer>();

            var language = storage.GetValueStorage(filterContext.HttpContext, ValuesApp.Language) ??
                           ValuesApp.LanguageDefault;

            Thread.CurrentThread.CurrentCulture   = CultureInfo.CreateSpecificCulture(language);
            Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(language);

            var currency = storage.GetValueStorage(filterContext.HttpContext, ValuesApp.Currency) ??
                           ValuesApp.CurrencyDefault;

            Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencySymbol   = ValuesApp.GetCurrencySymbol(language, currency);
            Thread.CurrentThread.CurrentUICulture.NumberFormat.CurrencySymbol = ValuesApp.GetCurrencySymbol(language, currency);
        }
Пример #7
0
        public void Init(HttpApplication context)
        {
            ICookieConsumer storage = DependencyResolver.Current.GetService <ICookieConsumer>();

            //var language = storage.GetValueStorage(context.Request.HttpContext, ValuesProvider.Language) ??
            //           ValuesProvider.LanguageDefault;

            //Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(language);
            //Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(language);

            //var currency = storage.GetValueStorage(filterContext.HttpContext, ValuesProvider.Currency) ??
            //           ValuesProvider.CurrencyDefault;

            //Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencySymbol = ValuesProvider.CurrencySymbol[currency].ToString();
            //Thread.CurrentThread.CurrentUICulture.NumberFormat.CurrencySymbol = ValuesProvider.CurrencySymbol[currency].ToString();
        }
Пример #8
0
 public AccountController(UserManager userManager, SignInManager signInManager, IAuthenticationManager auth, ICookieConsumer storage)
     : base(storage)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _authentication = auth;
 }
Пример #9
0
 public ShopBaseController(ICookieConsumer storage)
 {
     _storage = storage;
 }
Пример #10
0
 protected ShopBaseController(ICookieConsumer storage)
 {
     _storage = storage;
 }
Пример #11
0
 public MainController(ICategoryService category, ICookieConsumer storage)
     : base(storage)
 {
     _categoryService = category;
 }
Пример #12
0
 public MainController(IGoodService goodService, ICategoryService category, ICookieConsumer storage)
     : base(storage)
 {
     _categoryService = category;
     _goodService     = goodService;
 }
Пример #13
0
 public AdminController(ICookieConsumer storage, IAdminAppService admin, IRoleService role)
     : base(storage)
 {
     _admin = admin;
     _role = role;
 }
Пример #14
0
 public UserController(ICookieConsumer storage, IUserAppService userAppService)
     : base(storage)
 {
     _userAppService = userAppService;
     _totalPerPage = 10;
 }
Пример #15
0
 public GoodController(IPhotoRepository photo, ICookieConsumer storage, IGoodService goodService)
 {
     _storage     = storage;
     _goodService = goodService;
     _photo       = photo;
 }
Пример #16
0
 public CatalogController(IGoodService goodService, ICategoryService categoryService, ICookieConsumer storage)
     : base(storage)
 {
     _goodService       = goodService;
     _categoryService   = categoryService;
     _sizeStorageViewed = 5;
 }