Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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);
        }