public OrderBusiness(DatabaseFactory df = null, UnitOfWork uow = null) { DatabaseFactory dfactory = df == null ? new DatabaseFactory() : df; _unitOfWork = uow == null ? new UnitOfWork(dfactory) : uow; _orderRepository = new OrderDetailsRepository(dfactory); this._formsAuthenticationFactory = new FormsAuthenticationFactory(); }
public CustomerDetails(DatabaseFactory df = null, UnitOfWork uow = null) { DatabaseFactory dfactory = df == null ? new DatabaseFactory() : df; _unitOfWork = uow == null ? new UnitOfWork(dfactory) : uow; _customerdetailsRepository = new CustomerDetailsRepository(dfactory); this._formsAuthenticationFactory = new FormsAuthenticationFactory(); }
public ProductBusiness(DatabaseFactory df = null, UnitOfWork uow = null) { DatabaseFactory dfactory = df == null ? new DatabaseFactory() : df; _unitOfWork = uow == null ? new UnitOfWork(dfactory) : uow; _productRepository = new ProductRepository(dfactory); this._formsAuthenticationFactory = new FormsAuthenticationFactory(); }
// // GET: /Product/ public ProductController() { this._unitOfWork = new UnitOfWork(_df); this._productBusiness = new ProductBusiness(_df, this._unitOfWork); }
public BrandController() { this._unitOfWork = new UnitOfWork(_df); this._brandBusiness = new BrandBusiness(_df, this._unitOfWork); }
public webController() { this._unitOfWork = new UnitOfWork(_df); this._categoryBusiness = new CategoryBusiness(_df, this._unitOfWork); }
public AddtoCartController() { this._unitOfWork = new UnitOfWork(_df); this._cartBusiness = new AddToCartBusiness(_df, this._unitOfWork); }
public OrderDetailsController() { this._unitOfWork = new UnitOfWork(_df); this._orderBusiness = new OrderBusiness(_df, this._unitOfWork); }
public UserController() { this._unitOfWork = new UnitOfWork(_df); this._userBusiness = new UserBusiness(_df, this._unitOfWork); }
// // GET: /Product/ public CustomerController() { this._unitOfWork = new UnitOfWork(_df); this._customerBusiness = new CustomerDetails(_df, this._unitOfWork); }