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