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