コード例 #1
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        bool InterfaceLandScape.AddLandScape(LandScape landScape)
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            landScapeAPI.AddLandScape(landScape);
            return(true);
        }
コード例 #2
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        List <string> InterfaceLandScape.GetLandScapesName()
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.GetLandScapeName());
        }
コード例 #3
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        LandScape InterfaceLandScape.GetLandScapeByName(string Name)
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.GetLandScapeByName(Name));
        }
コード例 #4
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        bool InterfaceLandScape.DeleteLandScape(int id)
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.DeleteLandScape(id));
        }
コード例 #5
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        public LandScape GetLandScapeById(int id)
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.GetLandScapeById(id));
        }
コード例 #6
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        public List <LandScape> GetLandScapes()
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.GetLandScapes());
        }
コード例 #7
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        int InterfaceLandScape.GetLandScapeIdByName(string name)
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.GetIdByName(name));
        }
コード例 #8
0
ファイル: SMyPhoto.cs プロジェクト: TudorT98/MyPhotos
        bool InterfaceLandScape.UpdateLandScape(LandScape landScape)
        {
            LandScapeAPI landScapeAPI = new LandScapeAPI();

            return(landScapeAPI.UpdateLandScape(landScape.Id, landScape.LandScapeName, landScape.LandScapeDescription));
        }