/////////Test public Test TestM() { WCFCatalogue c = GetCatalogue("C001"); WCFCatalogue c2 = GetCatalogue("C002"); return(Test.Make(c.ItemCode, new WCFCatalogue[] { c, c2 })); }
public WCFCatalogue[] ListCatalogues() { List <WCFCatalogue> l = new List <WCFCatalogue>(); foreach (Catalogue c in Data.ListCatalogues()) { WCFCatalogue w = WCFCatalogue.Make(c.ItemCode, c.Description, c.Location, c.BalanceQuantity, c.UnitOfMeasure); l.Add(w); } return(l.ToArray <WCFCatalogue>()); }
public static WCFCatalogue Make(string itemCode, string description, string location, int?balanceQuantity, string unitOfMeature) { WCFCatalogue c = new WCFCatalogue(); c.itemCode = itemCode; c.description = description; c.location = location; c.balanceQuantity = balanceQuantity; c.UnitOfMeature = unitOfMeature; return(c); }
/////////////Catalogue public WCFCatalogue GetCatalogue(string itemCode) { Catalogue c = Data.GetCatalogue(itemCode); return(WCFCatalogue.Make(c.ItemCode, c.Description, c.Location, c.BalanceQuantity, c.UnitOfMeasure)); }