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.Customer DtoToEntity(this CustomerDetailRequest request) { dbentities.Customer entity = null; if (request != null) { entity = new dbentities.Customer { CustomerID = request.CustomerId, CustomerCode = request.CustomerCode, Name = request.Name, Address = request.Address, IsActive = request.IsActive, CreatedBy = request.CreatedBy, CreatedTime = request.CreatedTime, ModifiedBy = request.ModifiedBy, ModifiedTime = request.ModifiedTime }; } return(entity); }