Ejemplo n.º 1
0
 public GoodsController(IGoodService goodService, ICookieConsumer storage, IRecentlyViewedProvider viewedProvider)
     : base(storage)
 {
     _viewedProvider = viewedProvider;
     _goodService = goodService;
     _sizeStorageViewed = 20;
 }
Ejemplo n.º 2
0
        public CatalogController(ICategoryService categoryService, ICookieConsumer storage)
            : base(storage)
        {
 
            _categoryService = categoryService;
            _sizeStorageViewed = 5;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 8
0
 public AccountController(UserManager userManager, SignInManager signInManager, IAuthenticationManager auth, ICookieConsumer storage)
     : base(storage)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _authentication = auth;
 }
Ejemplo n.º 9
0
 public ShopBaseController(ICookieConsumer storage)
 {
     _storage = storage;
 }
Ejemplo n.º 10
0
 protected ShopBaseController(ICookieConsumer storage)
 {
     _storage = storage;
 }
Ejemplo n.º 11
0
 public MainController(ICategoryService category, ICookieConsumer storage)
     : base(storage)
 {
     _categoryService = category;
 }
Ejemplo n.º 12
0
 public MainController(IGoodService goodService, ICategoryService category, ICookieConsumer storage)
     : base(storage)
 {
     _categoryService = category;
     _goodService     = goodService;
 }
Ejemplo n.º 13
0
 public AdminController(ICookieConsumer storage, IAdminAppService admin, IRoleService role)
     : base(storage)
 {
     _admin = admin;
     _role = role;
 }
Ejemplo n.º 14
0
 public UserController(ICookieConsumer storage, IUserAppService userAppService)
     : base(storage)
 {
     _userAppService = userAppService;
     _totalPerPage = 10;
 }
Ejemplo n.º 15
0
 public GoodController(IPhotoRepository photo, ICookieConsumer storage, IGoodService goodService)
 {
     _storage     = storage;
     _goodService = goodService;
     _photo       = photo;
 }
Ejemplo n.º 16
0
 public CatalogController(IGoodService goodService, ICategoryService categoryService, ICookieConsumer storage)
     : base(storage)
 {
     _goodService       = goodService;
     _categoryService   = categoryService;
     _sizeStorageViewed = 5;
 }