public ProductController() { _commonRepository = new commonRepository(); _productCategoryRepository = new ProductCategoryRepository(); _productSubCategoryRepository = new ProductSubCategoryRepository(); _productRepository = new ProductRepository(); }
public AccountController() { _user = new UserMasterRepository(); _commonRepository = new commonRepository(); _registrationRepository = new RegistrationRepository(); _dealRepository = new DealRepository(); _schemeRepository = new SchemeRepository(); _productCategoryRepository = new ProductCategoryRepository(); _productSubCategoryRepository = new ProductSubCategoryRepository(); _productRepository = new ProductRepository(); _licenceImagesReposiory = new LicenceImagesReposiory(); _orderRepository = new OrderRepository(); _orderItemRepository = new OrderItemRepository(); }
/// <summary> /// Initializes a new instance of the <see cref="ProductCategoriesService"/> class. /// </summary> /// <param name="productSubCategoryRepository">The product sub category repository.</param> /// <param name="productCategoryRepository">The product category repository.</param> /// <param name="mapper">The mapper.</param> public ProductCategoriesService(IProductSubCategoryRepository productSubCategoryRepository, IProductCategoryRepository productCategoryRepository, IMapper mapper) { _productSubCategoryRepository = productSubCategoryRepository; _productCategoryRepository = productCategoryRepository; _mapper = mapper; }
public ApiProductController() { _productCategoryRepository = new ProductCategoryRepository(); _productSubCategoryRepository = new ProductSubCategoryRepository(); _productRepository = new ProductRepository(); }