public ProductController(IProductRepositry productRepositry, ILogger <OrderController> logger, IMapper mapper, UserManager <StoreUser> userManager, IConfiguration configuration) { _logger = logger; _mapper = mapper; _userManager = userManager; _productRepositry = productRepositry; _configuration = configuration; }
public ProductController(IProductRepositry productRepositry, IProductServices productservices) { _productRepositry = productRepositry; _productservices = productservices; }
public ProductController() { _productRepositry = new ProductRepositry(new ProductDataModel()); _productservices = new ProductServices(); // _productServices = new ProductServices(_productRepositry); }