コード例 #1
0
 public ProductsController(
     IProductsServices productsServices,
     UserManager <ApplicationUser> userManager)
 {
     this.productsServices = productsServices;
     this.userManager      = userManager;
 }
コード例 #2
0
 public void Setup()
 {
     AutoMapper.Mapper.Initialize(mapper =>
     {
         mapper.CreateMap <CartItems, CartItemsDto>().ReverseMap();
         mapper.CreateMap <Categories, CategoriesDto>().ReverseMap();
         mapper.CreateMap <OrderDetails, OrderDetailsDto>().ReverseMap();
         mapper.CreateMap <Orders, OrdersDto>().ReverseMap();
         mapper.CreateMap <Products, ProductsDto>().ReverseMap();
     });
     _wingtiptoysContext = new WingtiptoysContext();
     _categoryServices   = new CategoryServices(_wingtiptoysContext);
     _productsServices   = new ProductsServices(_wingtiptoysContext);
 }
コード例 #3
0
 public ProductsController(IProductsServices service)
 {
     _service = service;
 }
コード例 #4
0
 public ShoppingCartController(IShoppingCartServices services, IProductsServices productsServices)
 {
     _services         = services;
     _productsServices = productsServices;
 }
コード例 #5
0
 public void Init()
 {
     this.service    = new ProductsServices();
     this.controller = new ProductsController(this.service);
     this.ConfigureMapper();
 }
コード例 #6
0
 public ProductsPresenter(IProductsServices productsServices)
 {
     _productsServices = productsServices;
 }
コード例 #7
0
 public ProductsController(
     IProductsServices productsServices)
 {
     _productsServices = productsServices ?? throw new ArgumentNullException(nameof(productsServices));
 }
コード例 #8
0
 public HomeController(ILogger <HomeController> logger, ICategoryServices categoryServices, IProductsServices productsServices)
 {
     _categoryServices = categoryServices;
     _productsServices = productsServices;
     _logger           = logger;
 }
コード例 #9
0
ファイル: ProductsController.cs プロジェクト: JKobe13/Fishy
 public ProductsController(IProductsServices productsService)
 {
     _productsService = productsService;
 }
コード例 #10
0
 public ProductsController(IProductsServices iProductsServices, ICategoriesServices icategoriesServices)
 {
     _productsService    = iProductsServices;
     _categoriesServices = icategoriesServices;
 }
コード例 #11
0
 public ProductsController(IProductsServices services)
 {
     _services = services;
 }
コード例 #12
0
 public ProductsController()
 {
     _productsService = new ProductServices();
 }
コード例 #13
0
 public ProductsController(IProductsServices _productsServices)
 {
     ProductsServices = _productsServices;
 }