public ProductBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact) : base(data_repo_fact, bus_eng_fact, ent_serv_fact) { _product_repo = _data_repository_factory.GetDataRepository <IProductRepository>(); _attrib_be = _business_engine_factory.GetBusinessEngine <IEntityAttributeBusinessEngine>(); _prod_type_be = _business_engine_factory.GetBusinessEngine <IProductTypeBusinessEngine>(); _prod_es = _entity_service_factory.GetEntityService <IProductEntityService>(); }
public List <ProductType> GetProductTypeListByCategory(string category) { IProductTypeBusinessEngine product_type_be = _business_engine_factory.GetBusinessEngine <IProductTypeBusinessEngine>(); return(product_type_be.GetTypesByCategory(category)); }
public List <ProductType> GetProductTypeList() { IProductTypeBusinessEngine product_type_be = _business_engine_factory.GetBusinessEngine <IProductTypeBusinessEngine>(); return(product_type_be.GetTypes()); }