public CategoryManager(ICategoryDataAccess categoryData) { _categoryData = categoryData; }
public CategoryService(ICategoryDataAccess categoryDataAccess) { this.categoryDataAccess = categoryDataAccess; }
public EditCategoryController() { _dataAccess = new CategoryDataAccess(new DtoMapper(), new CategoryRepository()); }
public LeftSidebarController() { _dataAccess = new CategoryDataAccess(new DtoMapper(), new CategoryRepository()); _productDataAccess = new ProductDataAccess(new DtoMapper(), new ProductRepository()); }
// // GET: /AddProduct/ public AddProductController() { _productDataAccess = new ProductDataAccess(new DtoMapper(), new ProductRepository()); _caregoryDataAccess = new CategoryDataAccess(new DtoMapper(), new CategoryRepository()); }