private static double GetUnitPriceOfItem(AddItemRequestModel item) { var UnitsFactory = new UnitPriceFactory(); IUnitPrice unitPriceOfItem = UnitsFactory.GetUnitPrice(item.ItemType); var unitPrice = unitPriceOfItem.GetUnitPrice(); return(unitPrice); }
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); }