public ProductController(ICategoryRepository catrepository, IProductRepository service, IProduct_ImageRepository service_img, IProduct_CategoryRepository service_cat)
 {
     _catrepository = catrepository;
     _service       = service;
     _service_img   = service_img;
     _service_cat   = service_cat;
 }
Example #2
0
 public DashboardController(RoleManager <IdentityRole> rolemgr, UserManager <AdminUser> usrmgr, IProductRepository prepo, IOrderRepository orepo, IProduct_CategoryRepository pcrepo, IWebHostEnvironment env)
 {
     roleManager  = rolemgr;
     userManager  = usrmgr;
     prepository  = prepo;
     orepository  = orepo;
     pcrepository = pcrepo;
     environment  = env;
 }
 public HomeController(AppIdentityDbContext ctx, IProduct_CategoryRepository pcrepo, IProductRepository prepo)
 {
     context      = ctx;
     pcrepository = pcrepo;
     prepository  = prepo;
 }
Example #4
0
 public CategoryController(ICategoryRepository service, IProduct_CategoryRepository service_pro_cat)
 {
     _service         = service;
     _service_pro_cat = service_pro_cat;
 }