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>()); }
/////////////Catalogue public WCFCatalogue GetCatalogue(string itemCode) { Catalogue c = Data.GetCatalogue(itemCode); return(WCFCatalogue.Make(c.ItemCode, c.Description, c.Location, c.BalanceQuantity, c.UnitOfMeasure)); }