コード例 #1
0
ファイル: Service.cs プロジェクト: cheesiang89/Team10AD
    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>());
    }
コード例 #2
0
ファイル: Service.cs プロジェクト: cheesiang89/Team10AD
    /////////////Catalogue
    public WCFCatalogue GetCatalogue(string itemCode)
    {
        Catalogue c = Data.GetCatalogue(itemCode);

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