コード例 #1
0
 public PostController(IPostRepo postRepo, IMapper mapper, ICategoryRepo categoryRepo, ISettingsRepo settingsRepo)
 {
     _postRepo     = postRepo;
     _mapper       = mapper;
     _categoryRepo = categoryRepo;
     _settingsRepo = settingsRepo;
 }
コード例 #2
0
 public AdminController(IUserRepo userRepo, IMapper mapper, ICategoryRepo categoryRepo, ISettingsRepo settingsRepo)
 {
     _userRepo     = userRepo;
     _mapper       = mapper;
     _categoryRepo = categoryRepo;
     _settingsRepo = settingsRepo;
 }
コード例 #3
0
 public ProductsController(IProductRepo productRepo, ICategoryRepo categoryRepo,
                           IOptionsSnapshot <CustomSettings> settings, ILogger <ProductsController> logger)
 {
     _productRepo  = productRepo;
     _categoryRepo = categoryRepo;
     Logger        = logger;
 }
コード例 #4
0
ファイル: MonitorSvc.cs プロジェクト: Memoyu/blog_service
 public MonitorSvc(IArticleRepo articleRepo, ICategoryRepo categoryRepo, ITagRepo tagRepo, ICommentRepo commentRepo)
 {
     _articleRepo  = articleRepo;
     _categoryRepo = categoryRepo;
     _tagRepo      = tagRepo;
     _commentRepo  = commentRepo;
 }
コード例 #5
0
 public SelectedSeatController(ILogger <SelectedSeatController> logger, IRoutesRepo iRou, ICategoryRepo iCate, ISeatRePo iSeat)
 {
     _logger = logger;
     _IRou   = iRou;
     _ICate  = iCate;
     _ISeat  = iSeat;
 }
コード例 #6
0
 public RoutesAdminController(IRoutesRepo iRout, IStationRepo iStaion, ICategoryRepo iCate, IBusRePo iBus)
 {
     _IRout   = iRout;
     _IStaion = iStaion;
     _ICate   = iCate;
     _IBus    = iBus;
 }
コード例 #7
0
 public CategorySvc(ILogger <CategorySvc> logger, ICategoryRepo categoryRepo, IArticleRepo articleRepo, IArticleContentRepo articleContentRepo)
 {
     _logger             = logger;
     _categoryRepo       = categoryRepo;
     _articleRepo        = articleRepo;
     _articleContentRepo = articleContentRepo;
 }
コード例 #8
0
 public CategoriesController(ICategoryRepo repo, IMapper mapper, ILogger <CategoriesController> logger, IHostEnvironment hostEnvironment)
 {
     _repo            = repo;
     _mapper          = mapper;
     _logger          = logger;
     _hostEnvironment = hostEnvironment;
 }
コード例 #9
0
 public TableAddSaleViewModel(Table table, ICategoryRepo categoryRepo)
 {
     Table         = table;
     _categoryRepo = categoryRepo;
     ToTableAddSaleSubViewModelCommand = new RelayCommand <Data.Category>(ToTableAddSaleSubView, (x) => x != null);
     ViewBackCommand = new RelayCommand(ViewBack);
 }
コード例 #10
0
 public IContentContainer CreateSiteContent(
     ICategoryRepo catRepo,
     IArchiveRepository archiveRep,
     ITemplateRepo tempRep,
     int siteId)
 {
     return(new ContentContainer(catRepo, archiveRep, tempRep, siteId));
 }
コード例 #11
0
        public HomeController(ICategoryRepo catRepo, IModelRepo modelRepo)
        {
            _categoryRepository = catRepo;
            _modelRepository = modelRepo;

            //_productRepository = prodRepo;
            //_itemRepository = iteRepo;
        }
コード例 #12
0
 public DocumentController(
     ICategoryRepo categoryRepo,
     IDocumentRepo documentRepo
     )
 {
     _categoryRepo = categoryRepo ?? throw new ArgumentNullException(nameof(categoryRepo));
     _documentRepo = documentRepo ?? throw new ArgumentNullException(nameof(documentRepo));
 }
コード例 #13
0
ファイル: ContentRepository.cs プロジェクト: yushuo1990/cms
 public ContentRepository(
     ICategoryRepo catRepo,
     ITemplateRepo tempRep)
 {
     this._catRepo = catRepo;
     this._tempRep = tempRep;
     siteContents  = new Dictionary <int, IContentContainer>();
 }
コード例 #14
0
        public CategoryService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _categoryRepo = new CategoryRepo(context);
            _crashLogRepo = new CrashLogRepo(context);
            //_productRepo = new IProductRepo(context);
        }
コード例 #15
0
 public ProductsController(IWebHostEnvironment webHost, IMapper mapper,
                           IProductRepo productRepo, ICategoryRepo categoryRepo)
 {
     this.webHost      = webHost;
     this.mapper       = mapper;
     this.productRepo  = productRepo;
     this.categoryRepo = categoryRepo;
 }
コード例 #16
0
        public KitchenViewModel(ISaleRepo saleRepo, ICategoryRepo categoryRepo)
        {
            _saleRepo     = saleRepo;
            _categoryRepo = categoryRepo;

            CookedCommand           = new RelayCommand <Data.Sale>(Cooked, (_) => SelectedSale != null);
            ToProductAddViewCommand = new RelayCommand(ToReservationAddView);
        }
コード例 #17
0
 public CategoriesController(ILogger <CategoriesController> logger,
                             ICategoryRepo categoryRepos, ApplicationDbContext context,
                             IWebHostEnvironment env)
 {
     _logger        = logger;
     _categoryRepos = categoryRepos;
     _context       = context;
     _env           = env;
 }
コード例 #18
0
        public CategoriesListViewModel(ICategoryRepo categoryRepo)
        {
            this.categoryRepo = categoryRepo;
            Intialize();

            AddCategoryCommand    = new DelegateCommand <Category>(OnAddCategory);
            EditCategoryCommand   = new DelegateCommand <Category>(OnEditCategory, CanCategory);
            DeleteCategoryCommand = new DelegateCommand(OnDeleteCategory, CanCategory);
        }
コード例 #19
0
 public PetRepo(
     IAmazonDynamoDB client,
     ITagRepo tagRepo,
     ICategoryRepo categoryRepo
     ) : base(client, envVarTableName: "TABLE_NAME")
 {
     this.tagRepo      = tagRepo;
     this.categoryRepo = categoryRepo;
 }
コード例 #20
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="categoryRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="categoryId"></param>
 /// <param name="site"></param>
 /// <returns></returns>
 public ICategory CreateCategory(
     ICategoryRepo categoryRep,
     ISiteRepo siteRepo,
     IExtendFieldRepository extendRep,
     ITemplateRepo tempRep,
     CmsCategoryEntity value)
 {
     return(new Category(categoryRep, siteRepo, extendRep, tempRep, value));
 }
コード例 #21
0
 public CategoriesController(IUserService userService,
                             IAudioOwnerRepo audioOwnerRepo,
                             IQuoteBotRepo quoteBotRepo,
                             ICategoryRepo categoryRepo)
 {
     this.userService    = userService;
     this.audioOwnerRepo = audioOwnerRepo;
     this.quoteBotRepo   = quoteBotRepo;
     this.categoryRepo   = categoryRepo;
 }
コード例 #22
0
 public DataOptionsController(MigrationsManager manager,
                              IBookRepo bookRepo,
                              ICategoryRepo categoryRepo,
                              IPublisherRepo publisherRepo)
 {
     _manager       = manager;
     _bookRepo      = bookRepo;
     _categoryRepo  = categoryRepo;
     _publisherRepo = publisherRepo;
 }
コード例 #23
0
 public ProductController(IGenderRepo genderRepo, ISizeRepo sizeRepo, IProductRepo repostory, IMapper mapper, ICategoryRepo categoryRepo, ISizeOfProductRepo sizeOfProductRepo, IGenderOfProductRepo genderOfProductRepo)
 {
     _genderRepo          = genderRepo;
     _sizeRepo            = sizeRepo;
     _categoryRepo        = categoryRepo;
     _repository          = repostory;
     _sizeOfProductRepo   = sizeOfProductRepo;
     _genderOfProductRepo = genderOfProductRepo;
     _mapper = mapper;
 }
コード例 #24
0
 public AudioCategoryController(IAudioCategoryRepo audioCategoryRepo,
                                IAudioOwnerRepo audioOwnerRepo,
                                ICategoryRepo categoryRepo,
                                IUserService userService)
 {
     this.audioCategoryRepo = audioCategoryRepo;
     this.audioOwnerRepo    = audioOwnerRepo;
     this.categoryRepo      = categoryRepo;
     this.userService       = userService;
 }
コード例 #25
0
ファイル: WaiterViewModel.cs プロジェクト: TiboVDS/Horeka
        //private Data.Occupancy _selectedOccupancy;
        //public Data.Occupancy SelectedOccupancy
        //{
        //    get { return _selectedOccupancy; }
        //    set { SetValue(ref _selectedOccupancy, value); }
        //}

        #endregion

        #region Constructor
        public WaiterViewModel(ISaleRepo saleRepo, IOccupanciesRepo occupanciesRepo, ICategoryRepo categoryRepo)
        {
            _saleRepo        = saleRepo;
            _occupanciesRepo = occupanciesRepo;
            _categoryRepo    = categoryRepo;

            // .Where(sale => sale.Cooked.Equals("0"))         (ObservableCollection < Data.Sale > )
            //EditReservationCommand = new RelayCommand<CurrentCellEndEditEventArgs>(EditReservation);
            DeliverdCommand = new RelayCommand <WaiterSale>(Delivered, (_) => SelectedSale != null);
        }
コード例 #26
0
 public ArchiveService(
     IContentRepository contentRep,
     ICategoryRepo catRepo,
     IExtendFieldRepository extendRep
     )
 {
     _contentRep = contentRep;
     _extendRep  = extendRep;
     _catRepo    = catRepo;
 }
コード例 #27
0
 internal Category(ICategoryRepo rep, ISiteRepo siteRepo,
     IExtendFieldRepository extendRep, ITemplateRepo tmpRep, 
     CmsCategoryEntity value)
 {
     this.value = value;
     this._repo = rep;
     this._extendRep = extendRep;
     this._tempRep = tmpRep;
     this.siteRepo = siteRepo;
 }
コード例 #28
0
        public IActionResult ProductList([FromServices] ICategoryRepo categoryRepo, int id)
        {
            var cat = categoryRepo.Find(id);

            ViewBag.Title        = cat?.CategoryName;
            ViewBag.Header       = cat?.CategoryName;
            ViewBag.ShowCategory = false;
            ViewBag.Featured     = false;
            return(View(_productRepo.GetProductsForCategory(id)));
        }
コード例 #29
0
 internal ContentContainer(
     ICategoryRepo catRepo,
     IArchiveRepository archiveRep,
     ITemplateRepo tempRep,
     int siteId)
 {
     _catRepo    = catRepo;
     _archiveRep = archiveRep;
     _tempRep    = tempRep;
     SiteId      = siteId;
 }
コード例 #30
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep,
     CmsArchiveEntity value)
 {
     return(new Archive(contentRep, archiveRep, extendRep,
                        categoryRep, templateRep, value));
 }
コード例 #31
0
 public StatementService(
     IStatementRepo statementRepo,
     ICategoryRepo categoryRepo,
     IAssetRepo assetRepo,
     IFileRepo fileRepo)
 {
     _statementRepo = statementRepo;
     _categoryRepo  = categoryRepo;
     _assetRepo     = assetRepo;
     _fileRepo      = fileRepo;
 }
コード例 #32
0
ファイル: CategoryBLL.cs プロジェクト: maglunde/Tankshop
 public CategoryBLL(ICategoryRepo repo)
 {
     this.repo = repo;
 }
コード例 #33
0
 public CategoryController()
 {
     this.categoryRepo = new CategoryRepository(new KasaTakipDbContext());
 }
コード例 #34
0
ファイル: ProductBLL.cs プロジェクト: maglunde/Tankshop
 public ProductBLL()
 {
     _productRepo = new ProductRepo();
     _categoryRepo = new CategoryRepo();
 }
コード例 #35
0
ファイル: ProductBLL.cs プロジェクト: maglunde/Tankshop
 public ProductBLL(IProductRepo stub)
 {
     _productRepo = stub;
     _categoryRepo = new CategoryRepoStub();
 }
コード例 #36
0
 public CategoryOperations(ICategoryRepo categoryRepo)
 {
     _categoryRepo = categoryRepo;
 }
コード例 #37
0
 public ExporterController(ICategoryRepo categoryRepo)
 {
     this.categoryRepo = categoryRepo;
 }
コード例 #38
0
ファイル: CategoryBLL.cs プロジェクト: maglunde/Tankshop
 public CategoryBLL()
 {
     repo = new CategoryRepo();
 }
コード例 #39
0
 public CategoryController(ICategoryRepo repo)
 {
     _repository = repo;
 }
コード例 #40
0
 public CategoryController(ICategoryRepo categoryRepo)
 {
     this.categoryRepo = categoryRepo;
 }