public ProductServices( IInventoryAAARepository <dbentities.Product> productServices, IInventoryAAARepository <dbentities.ProductLog> productLogServices, IInventoryAAARepository <dbentities.ProductPrice> productPriceServices, IInventoryAAARepository <dbentities.ProductPricesLog> productPricesLogServices) { this._productServices = productServices; this._productLogServices = productLogServices; this._productPriceServices = productPriceServices; this._productPricesLogServices = productPricesLogServices; this.products = new dbentities.Product(); this.productLogs = new dbentities.ProductLog(); this.productPrice = new dbentities.ProductPrice(); this.productPricesLog = new dbentities.ProductPricesLog(); }
public static dbentities.ProductPricesLog DtoToEntity(this ProductPricesLogDetailRequest request) { dbentities.ProductPricesLog entity = null; if (request != null) { entity = new dbentities.ProductPricesLog { ProductID = request.ProductId, PriceTypeID = request.PriceTypeId, Price = request.Price, ProductPriceLogsID = request.ProductPriceLogsId, CreatedBy = request.CreatedBy, CreatedTime = request.CreatedTime }; } return(entity); }