コード例 #1
0
        private static double GetUnitPriceOfItem(AddItemRequestModel item)
        {
            var        UnitsFactory    = new UnitPriceFactory();
            IUnitPrice unitPriceOfItem = UnitsFactory.GetUnitPrice(item.ItemType);
            var        unitPrice       = unitPriceOfItem.GetUnitPrice();

            return(unitPrice);
        }
コード例 #2
0
        public ActionResult <SKUItem> GetSKUItem(string id)
        {
            var returnObject = new SKUItem();
            var SKUitem      = new UnitPriceFactory().GetUnitPrice(id);

            returnObject.UnitPrice = SKUitem.GetUnitPrice();
            returnObject.UnitName  = SKUitem.GetUnitName();
            return(returnObject);
        }