public InvoiceBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact) : base(data_repo_fact, bus_eng_fact, ent_serv_fact) { _invoice_repo = _data_repository_factory.GetDataRepository <IInvoiceRepository>(); _invoice_item_repo = _data_repository_factory.GetDataRepository <IInvoiceItemRepository>(); _comment_be = _business_engine_factory.GetBusinessEngine <ICommentBusinessEngine>(); _employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>(); _address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>(); _product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); _account_be = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); _invoice_se = _entity_service_factory.GetEntityService <IInvoiceEntityService>(); _invoice_item_se = _entity_service_factory.GetEntityService <IInvoiceItemEntityService>(); }
public OrderBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact) : base(data_repo_fact, bus_eng_fact, ent_serv_fact) { _order_header_repo = _data_repository_factory.GetDataRepository <IOrderHeaderRepository>(); _order_item_repo = _data_repository_factory.GetDataRepository <IOrderItemRepository>(); _comment_be = _business_engine_factory.GetBusinessEngine <ICommentBusinessEngine>(); _employee_be = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>(); _address_be = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>(); _product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); _account_be = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>(); _order_status_be = _business_engine_factory.GetBusinessEngine <IOrderStatusBusinessEngine>(); _order_item_status_be = _business_engine_factory.GetBusinessEngine <IOrderItemStatusBusinessEngine>(); _order_se = _entity_service_factory.GetEntityService <IOrderEntityService>(); _order_item_se = _entity_service_factory.GetEntityService <IOrderItemEntityService>(); }
public List <Product> GetProducts(Company company) { IProductBusinessEngine product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); return(product_be.GetProductsByCompany(company)); }
public Product GetProduct(int product_key) { IProductBusinessEngine product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); return(product_be.GetProductByID(product_key)); }
public bool DeleteProduct(Product product) { IProductBusinessEngine product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); return(product_be.ProductDelete(product)); }
public int CreateProduct(Product product) { IProductBusinessEngine product_be = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>(); return(product_be.ProductSave(product)); }