Esempio n. 1
0
 public CategoryDeleter(DataContext db, ICategoryService categoryService,
                        IDeleterService deleterService, ICacheService cacheService)
 {
     this.db = db;
     this.categoryService = categoryService;
     this.deleterService  = deleterService;
     this.cacheService    = cacheService;
 }
Esempio n. 2
0
 public CategoryDeleter(DataContext db, ICategoryService categoryService,
     IDeleterService deleterService, ICacheService cacheService)
 {
     this.db = db;
     this.categoryService = categoryService;
     this.deleterService = deleterService;
     this.cacheService = cacheService;
 }
Esempio n. 3
0
 public ProductController(DataContext db, IProductFinder productFinder, IDeleterService deleterService,
                          IProductService productService, ITaxClassService taxClassService, ISettingService settingService) : base(db)
 {
     this.productFinder   = productFinder;
     this.deleterService  = deleterService;
     this.productService  = productService;
     this.taxClassService = taxClassService;
     this.settingService  = settingService;
 }
Esempio n. 4
0
 public ProductController(DataContext db, IProductFinder productFinder, IDeleterService deleterService,
     IProductService productService, ITaxClassService taxClassService, ISettingService settingService)
     : base(db)
 {
     this.productFinder = productFinder;
     this.deleterService = deleterService;
     this.productService = productService;
     this.taxClassService = taxClassService;
     this.settingService = settingService;
 }
Esempio n. 5
0
        public CustomerService(DataContext db, IUserStore<User> userStore, IRoleStore<IdentityRole, string> roleStore,IDeleterService deleteService)
        {
            this.db = db;
            this.deleteService = deleteService;
            userManager = new UserManager<User>(userStore);

            if (_customerRoleID == null)
            {
                lock (padlock)
                {
                    if (_customerRoleID == null)
                    {
                        var roleManager = new RoleManager<IdentityRole>(roleStore);
                        // ReSharper disable PossibleMultipleWriteAccessInDoubleCheckLocking
                        _customerRoleID = roleManager.FindByName(User.CUSTOMER_ROLE).Id;
                        // ReSharper restore PossibleMultipleWriteAccessInDoubleCheckLocking
                    }
                }
            }
        }
Esempio n. 6
0
        public CustomerService(DataContext db, IUserStore <User> userStore, IRoleStore <IdentityRole, string> roleStore, IDeleterService deleteService)
        {
            this.db            = db;
            this.deleteService = deleteService;
            userManager        = new UserManager <User>(userStore);

            if (_customerRoleID == null)
            {
                lock (padlock)
                {
                    if (_customerRoleID == null)
                    {
                        var roleManager = new RoleManager <IdentityRole>(roleStore);
                        // ReSharper disable PossibleMultipleWriteAccessInDoubleCheckLocking
                        _customerRoleID = roleManager.FindByName(User.CUSTOMER_ROLE).Id;
                        // ReSharper restore PossibleMultipleWriteAccessInDoubleCheckLocking
                    }
                }
            }
        }
 public BlogPostCommentController(IBlogPostCommentService blogPostCommentService, IDeleterService deleterService)
 {
     this.deleterService = deleterService;
     this.blogPostCommentService = blogPostCommentService;
 }
Esempio n. 8
0
 public BlogController(IBlogService blogService, IDeleterService deleterService)
 {
     this.deleterService = deleterService;
     this.blogService    = blogService;
 }
Esempio n. 9
0
 public BlogController(IBlogService blogService, IDeleterService deleterService)
 {
     this.deleterService = deleterService;
     this.blogService = blogService;
 }
Esempio n. 10
0
 public BlogPostCommentController(IBlogPostCommentService blogPostCommentService, IDeleterService deleterService)
 {
     this.deleterService         = deleterService;
     this.blogPostCommentService = blogPostCommentService;
 }