public static dbentities.ProductPrice DtoToEntity(this ProductPricesDetailRequest request) { dbentities.ProductPrice entity = null; if (request != null) { entity = new dbentities.ProductPrice { ProductID = request.ProductId, PriceTypeID = request.PriceTypeId, Price = request.Price }; } return(entity); }
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(); }