Exemplo n.º 1
0
        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>());
        }
Exemplo n.º 2
0
        /////////////Catalogue
        public WCFCatalogue GetCatalogue(string itemCode)
        {
            Catalogue c = Data.GetCatalogue(itemCode);

            return(WCFCatalogue.Make(c.ItemCode, c.Description, c.Location, c.BalanceQuantity, c.UnitOfMeasure));
        }