示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="cache"></param>
        /// <param name="mobileLookupApi"></param>
        /// <param name="localizer"></param>
        public MobileLookupController(IDistributedCache cache,
                                      IMobileLookupApi mobileLookupApi,
                                      IStringLocalizer <MobileLookupController> localizer)
        {
            this._cache = cache;

            this._mobileLookupApi = mobileLookupApi;

            this._localizer = localizer;
        }
示例#2
0
        /// <summary>
        /// This is the constructor. It is used to
        /// </summary>
        public ProductsController(IDistributedCache cache,
                                  IProductApi productMaintenanceApi,
                                  IDownloadTimesApi downloadTimesApi,
                                  IProductTypesApi productTypesApi,
                                  IManufacturersApi manufacturersApi,
                                  IInstallTypesApi installTypesApi,
                                  IMobileLookupApi mobileLookupApi,
                                  IBrandApi brandApi,
                                  IStringLocalizer <ProductsController> localizer)
        {
            this._cache = cache;

            this._productMaintenanceApi = productMaintenanceApi;

            this._downloadTimesApi = downloadTimesApi;
            this._productTypesApi  = productTypesApi;
            this._manufacturersApi = manufacturersApi;
            this._installTypesApi  = installTypesApi;
            this._mobileLookupApi  = mobileLookupApi;
            this._brandApi         = brandApi;

            this._localizer = localizer;
        }