public GoodsController(IGoodService goodService, ICookieConsumer storage, IRecentlyViewedProvider viewedProvider) : base(storage) { _viewedProvider = viewedProvider; _goodService = goodService; _sizeStorageViewed = 20; }
public CatalogController(ICategoryService categoryService, ICookieConsumer storage) : base(storage) { _categoryService = categoryService; _sizeStorageViewed = 5; }
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; }
public CartController(ICookieConsumer storage, ICartProvider<UserOrderModel> cartProvider, IPurchaseService purchaseService, IUserAppService user, ILogWriterSql log) : base(storage) { _user = user; _log = log; _cartProvider = cartProvider; _purchaseService = purchaseService; }
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; }
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); }
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(); }
public AccountController(UserManager userManager, SignInManager signInManager, IAuthenticationManager auth, ICookieConsumer storage) : base(storage) { _userManager = userManager; _signInManager = signInManager; _authentication = auth; }
public ShopBaseController(ICookieConsumer storage) { _storage = storage; }
protected ShopBaseController(ICookieConsumer storage) { _storage = storage; }
public MainController(ICategoryService category, ICookieConsumer storage) : base(storage) { _categoryService = category; }
public MainController(IGoodService goodService, ICategoryService category, ICookieConsumer storage) : base(storage) { _categoryService = category; _goodService = goodService; }
public AdminController(ICookieConsumer storage, IAdminAppService admin, IRoleService role) : base(storage) { _admin = admin; _role = role; }
public UserController(ICookieConsumer storage, IUserAppService userAppService) : base(storage) { _userAppService = userAppService; _totalPerPage = 10; }
public GoodController(IPhotoRepository photo, ICookieConsumer storage, IGoodService goodService) { _storage = storage; _goodService = goodService; _photo = photo; }
public CatalogController(IGoodService goodService, ICategoryService categoryService, ICookieConsumer storage) : base(storage) { _goodService = goodService; _categoryService = categoryService; _sizeStorageViewed = 5; }