public MenuItemController(SpiceStoreContext _context, ISubCategoryRepository subCatRepository, ICategoryRepository _categoryRepository, IWebHostEnvironment hostEnvironment) { storeContext = _context; categoryRepository = _categoryRepository; subCategoryRepository = subCatRepository; webHostEnvironment = hostEnvironment; }
// // GET: /Payee/ public PayeeController(IConstantRepository constantParam, IPayeeCategoryRepository PayeeCategoryParam, IPayeeRepository payeeParam, IBankAccountRepository BankAccountParam, ISubCategoryRepository SubCategoryParam, ISubCategoryItemRepository SubCategoryItemParam) { ConstantRepository = constantParam; PayeeCategoryRepository = PayeeCategoryParam; PayeeRepository = payeeParam; BankAccountRepository = BankAccountParam; SubCategoryRepository = SubCategoryParam; SubCategoryItemRepository = SubCategoryItemParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "FinanceLead")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if (user.role.Name == "FinanceStaff") //creator access { ViewBag.Supervisor2 = true; } } } }
public MyBugsController(UserManager <ApplicationUser> userManager, IBugRepository bugRepository, ICategoryRepository categoryRepository, ISubCategoryRepository subCategoryRepository) { this.userManager = userManager; BugRepository = bugRepository; CategoryRepository = categoryRepository; SubCategoryRepository = subCategoryRepository; }
public MinistryIncomeController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IMinistryIncomeRepository MinistryIncomeParam, IMinistryMemberRepository MinistryMemberParam, ISubCategoryRepository SubCategoryParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; MinistryIncomeRepository = MinistryIncomeParam; MinistryMemberRepository = MinistryMemberParam; SubCategoryRepository = SubCategoryParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin")) //creator access { ViewBag.Supervisor = true; } if ((user.role.Name == "Officer") || (user.role.Name == "FinanceLead")) //creator access { ViewBag.Supervisor2 = true; } if ((user.role.Name == "FinanceStaff") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor3 = true; } } } }
public HomeController(ISlidersRepository slidersRepository, ICategoryRepository categoryRepository, IProductRepository productRepository, ISubCategoryRepository subcategoryRepository) { this.slidersRepository = slidersRepository; this.categoryRepository = categoryRepository; this.productRepository = productRepository; this.subcategoryRepository = subcategoryRepository; }
public ContributionController(IConstantRepository ConstantParam, IMemberRepository MemberParam, IFamilyRepository FamilyParam, IContributionRepository ContributionParam, ISubCategoryRepository SubCategoryParam, IPictureRepository PictureParam, ISpouseRepository SpouseParam, IMinistryRepository MinistryParam) { ConstantRepository = ConstantParam; MemberRepository = MemberParam; FamilyRepository = FamilyParam; ContributionRepository = ContributionParam; SubCategoryRepository = SubCategoryParam; PictureRepository = PictureParam; SpouseRepository = SpouseParam; MinistryRepository = MinistryParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "FinanceLead")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if ((user.role.Name == "FinanceStaff") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor2 = true; } } }
public CategorySidebar(ITopCategoryRepository topCategoryRepo, IMiddleCategoryRepository middleCategoryRepo, ISubCategoryRepository subCategoryRepo, IErrorLogRepository errorRepo) { _topCategoryRepo = topCategoryRepo; _middleCategoryRepo = middleCategoryRepo; _subCategoryRepo = subCategoryRepo; _errorRepo = errorRepo; }
public LegacyGraphController(ILegacySumupService sumupService, ILegacyAccountStatusQueryRepository monthlyAccountStatusRepository, ILegacyPostingQueryRepository graphRepository, ISubCategoryRepository subCategoryRepository) { _sumupService = sumupService; _monthlyAccountStatusRepository = monthlyAccountStatusRepository; _postingQueryRepository = graphRepository; _subCategoryRepository = subCategoryRepository; }
public SubCategoryService(ISubCategoryRepository repoBrand, IMapper mapper, MapperConfiguration configMapper) { _configMapper = configMapper; _mapper = mapper; _repoSubCategory = repoBrand; }
public SubCategoryController( ISubCategoryRepository subCategoryRepository, ICategoryRepository categoryRepository) { _subCategoryRepository = subCategoryRepository; _categoryRepository = categoryRepository; }
public AnalyticsController(ISubCategoryRepository repo, ICategoryRepository repoCat,IUserRepository repoUser,IQuizRepository repoQuiz) { _repo = repo; _repoCat = repoCat; _repoUser = repoUser; _repoQuiz = repoQuiz; }
public CategoryService(ICategoryRepository categoryRepository, ISubCategoryRepository subCategoryRepository, UnitOfWork unitOfWork) { this.categoryRepository = categoryRepository; this.subCategoryRepository = subCategoryRepository; this.unitOfWork = unitOfWork; }
public SubCategoryController(IProductSubCategoryViewModelFactory productSubCategoryViewModelFactory, ISubCategoryRepository subCategoryRepository, ICustomerIdService customerIdService) { _productSubCategoryViewModelFactory = productSubCategoryViewModelFactory; _subCategoryRepository = subCategoryRepository; _customerIdService = customerIdService; }
public CategoryWebService() { BzaleDatabaseContext context = new BzaleDatabaseContext(); _categoryRepository = new MainCategoryRepository(context); _subcategoryRepository = new SubCategoryRepository(context); _productRepository = new ProductTypeRepository(context); }
public QuizsController(IQuizRepository repo, ICategoryRepository repoCat, ISubCategoryRepository repoSubCat, ILevelRepository repoLevel, IQuestionTypeRepository repoQuestionType) { _repo = repo; _repoCat = repoCat; _repoLevel = repoLevel; _repoSubCat = repoSubCat; _repoQuestionType = repoQuestionType; }
public WritersController(IPostRepository postRepository, ISubCategoryRepository subCategoryRepository ) { _postRepository = postRepository; _subCategoryRepository = subCategoryRepository; }
public SubCategoryService(ISubCategoryRepository subCategoryRepository, ICategoryRepository categoryRepository, DbContextFactory dbContextFactory) { this.subCategoryRepository = subCategoryRepository; this.categoryRepository = categoryRepository; this.dbContextFactory = dbContextFactory; }
public AdminController(ICategoryRepository categoryRepository, ISubCategoryRepository subCategoryRepository, ICommentRepository commentRepository ) { _categoryRepository = categoryRepository; _subCategoryRepository = subCategoryRepository; _commentRepository = commentRepository; }
public ExpenseService(ICategoryRepository categoryRepository, ISubCategoryRepository subCategoryRepository, DbContextFactory dbContextFactory, IExpenseDatatableRepository expenseDatatableRepository) { this.categoryRepository = categoryRepository; this.subCategoryRepository = subCategoryRepository; this.dbContextFactory = dbContextFactory; this.expenseDatatableRepository = expenseDatatableRepository; }
public SubCategoryController(ISubCategoryRepository subCategoryRepositry, ILogger <OrderController> logger, IMapper mapper, UserManager <StoreUser> userManager) { _logger = logger; _mapper = mapper; _userManager = userManager; _subCategoryRepositry = subCategoryRepositry; }
public ReviewController(IReviewRepository reviewRepository, IProductRepository productRepository, ISubCategoryRepository subCategoryRepository, ICategoryRepository categoryRepository) { _reviewRepository = reviewRepository; _productRepository = productRepository; _subCategoryRepository = subCategoryRepository; _categoryRepository = categoryRepository; }
public AjaxSubCategoryController(ICategoryService categoryService, IMapper mapper, ISubCategoryService subCategoryService, ISubCategoryRepository subCategoryRepository) { _categoryService = categoryService; _mapper = mapper; _subCategoryService = subCategoryService; _subCategoryRepository = subCategoryRepository; }
public SerchBoxController(ITopCategoryRepository topRepo, IProductRepository productRepo, IErrorLogRepository errorRepo, IHttpContextAccessor httpContextAccessor, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IBrandRepository brandRepo) { _topRepo = topRepo; _productRepo = productRepo; _errorRepo = errorRepo; _httpContextAccessor = httpContextAccessor; _midRepo = midRepo; _subRepo = subRepo; _brandRepo = brandRepo; }
public BrandController(ITopCategoryRepository topRepo, IProductRepository productRepo, IErrorLogRepository errorRepo, IHttpContextAccessor httpContextAccessor, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IStringLocalizer <ProductController> localizer, IBrandRepository brandRepo) { _topRepo = topRepo; _productRepo = productRepo; _errorRepo = errorRepo; _httpContextAccessor = httpContextAccessor; _midRepo = midRepo; _subRepo = subRepo; _localizer = localizer; _brandRepo = brandRepo; }
public PostsController(IPostRepository postRepository, ISubCategoryRepository subCategoryRepository, ICategoryRepository categoryRepository, ICommentRepository commentRepository ) { _postRepository = postRepository; _subCategory = subCategoryRepository; _categoryRepository = categoryRepository; _commentRepository = commentRepository; }
public SliderController(ITopCategoryRepository topRepo, IErrorLogRepository errorRepo, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IProductRepository productRepo, IMapper mapper, ISliderRepository sliderRepo, IBrandRepository brandRepo, IWebHostEnvironment environment) { _topRepo = topRepo; _midRepo = midRepo; _subRepo = subRepo; _productRepo = productRepo; _errorRepo = errorRepo; _mapper = mapper; _sliderRepo = sliderRepo; _brandRepo = brandRepo; _environment = environment; }
public ProductService(IProductRepository productRepository, ICategoryRepository categoryRepository, ISubCategoryRepository subCategoryRepository, IQueueService queueService, IFileRepository fileRepository) { _productRepository = productRepository; _categoryRepository = categoryRepository; _subCategoryRepository = subCategoryRepository; _queueService = queueService; _fileRepository = fileRepository; }
public TransactionRepository(DatabaseContext context, IAccountRepository account, ICategoryRepository category, ISubCategoryRepository subCategory, ITransactionTypeRepository transactionType) : base(context) { Account = account; Category = category; SubCategory = subCategory; TransactionType = transactionType; }
public HomeController(ILogger <HomeController> logger, ITopCategoryRepository topRepo, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IBrandRepository brandRepo, IProductRepository productRepo, IStringLocalizer <HomeController> localizer, IEmailNewsletterRepository emailNewsletterRepo, IErrorLogRepository errorRepo, IHostingEnvironment hostingEnvironment, IContactUsRepository contactRepo) { _logger = logger; _topRepo = topRepo; _midRepo = midRepo; _subRepo = subRepo; _brandRepo = brandRepo; _productRepo = productRepo; _localizer = localizer; _emailNewsletterRepo = emailNewsletterRepo; _errorRepo = errorRepo; _hostingEnvironment = hostingEnvironment; _contactRepo = contactRepo; }
// GET: CategoryPage public CategoryPageController( ICurrencyRepository currencyRepository, ICompanyInfoRepository companyInfoRepository, ICategoryRepository categoryRepository, IBrandRepository brandRepository, ISubCategoryRepository subCategoryRepository) : base(new SubCategoryModel(), currencyRepository, companyInfoRepository, categoryRepository, brandRepository) { this.categoryRepository = categoryRepository; this.subCategoryRepository = subCategoryRepository; }
public ProductService( IProductRepository productRepo, IMapper mapper, ISubCategoryRepository subCategoryRepo, IProductDetailRepository productDetailRepo, IColorRepository colorRepo, ISizeRepository sizeRepo) { _productRepo = productRepo; _mapper = mapper; _subCategoryRepo = subCategoryRepo; _productDetailRepo = productDetailRepo; _colorRepo = colorRepo; _sizeRepo = sizeRepo; }
public UnitOfWork(BoardyDbContext dbContext, IAddressRepository addressRepository, IAdvertCommentRepository advertCommentRepository, IAdvertRepository advertRepository, IImageRepository imageRepository, ILikeRepository likeRepository, ISubCategoryRepository subCategoryRepository) { _dbContext = dbContext; AddressRepository = addressRepository; AdvertCommentRepository = advertCommentRepository; AdvertRepository = advertRepository; ImageRepository = imageRepository; LikeRepository = likeRepository; SubCategoryRepository = subCategoryRepository; }
public SubCategoryService(ISubCategoryRepository subCategoriesRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork) { this.subCategoriesRepository = subCategoriesRepository; this.categoryRepository = categoryRepository; this.unitOfWork = unitOfWork; }
public SubCategoriesController(ISubCategoryRepository repo, ICategoryRepository repoCat) { _repo = repo; _repoCat = repoCat; }
public SubCategoriesController(ISubCategoryRepository repo) { _repo = repo; }