Ejemplo n.º 1
0
 public CouponController(ICouponQueryService queryService,
                         ICouponService service,
                         IAuthorizeValidator authorizeValidator,
                         IHostingEnvironment env)
 {
     _queryService       = queryService;
     _service            = service;
     _authorizeValidator = authorizeValidator;
     _hostingEnv         = env;
     _excelStream        = new ExcelStream();
 }
 public HomeController(ICouponQueryService couponqueryService,
                       IProductQueryService productQueryService)
 {
     try
     {
         _couponqueryService  = couponqueryService;
         _productQueryService = productQueryService;
         if (ProductTypeNames == null || !ProductTypeNames.Any())
         {
             lock (_lockObject)
             {
                 if (ProductTypeNames == null)
                 {
                     ProductTypeNames = _couponqueryService.FindAllProduceType();
                 }
             }
         }
     }
     catch
     {
     }
 }