public ProductsController( IProductsServices productsServices, UserManager <ApplicationUser> userManager) { this.productsServices = productsServices; this.userManager = userManager; }
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); }
public ProductsController(IProductsServices service) { _service = service; }
public ShoppingCartController(IShoppingCartServices services, IProductsServices productsServices) { _services = services; _productsServices = productsServices; }
public void Init() { this.service = new ProductsServices(); this.controller = new ProductsController(this.service); this.ConfigureMapper(); }
public ProductsPresenter(IProductsServices productsServices) { _productsServices = productsServices; }
public ProductsController( IProductsServices productsServices) { _productsServices = productsServices ?? throw new ArgumentNullException(nameof(productsServices)); }
public HomeController(ILogger <HomeController> logger, ICategoryServices categoryServices, IProductsServices productsServices) { _categoryServices = categoryServices; _productsServices = productsServices; _logger = logger; }
public ProductsController(IProductsServices productsService) { _productsService = productsService; }
public ProductsController(IProductsServices iProductsServices, ICategoriesServices icategoriesServices) { _productsService = iProductsServices; _categoriesServices = icategoriesServices; }
public ProductsController(IProductsServices services) { _services = services; }
public ProductsController() { _productsService = new ProductServices(); }
public ProductsController(IProductsServices _productsServices) { ProductsServices = _productsServices; }