public CustomerService( IInventoryIORepository <dbentities.Customer> customerService, IInventoryIORepository <dbentities.CustomerPrice> customerPriceService) { this._customerService = customerService; this._customerPriceService = customerPriceService; this.customers = new dbentities.Customer(); this.customerPrices = new dbentities.CustomerPrice(); }
public static dbentities.CustomerPrice DtoToEntity(this CustomerPriceDetailRequest request) { dbentities.CustomerPrice entity = null; if (request != null) { entity = new dbentities.CustomerPrice { CustomerID = request.CustomerId, ProductID = request.ProductId, ProductPrice = request.ProductPrice, CreatedBy = request.CreatedBy, CreatedTime = request.CreatedTime, }; } return(entity); }