コード例 #1
0
        public async Task <bool> DeleteStation(int id, [FromBody] Station station)
        {
            var manager = StationDataManagerFactory.GetStationDataManager();

            return(await manager.DeleteStation(station));
        }
コード例 #2
0
        public async Task <IEnumerable <Station> > GetByCommunityId(int id)
        {
            var manager = StationDataManagerFactory.GetStationDataManager();

            return(await manager.GetStationByCommunityId(id));
        }
コード例 #3
0
        public async Task <Station> GetById(int id)
        {
            var manager = StationDataManagerFactory.GetStationDataManager();

            return(await manager.GetStationById(id));
        }
コード例 #4
0
        public async Task <bool> AddStation([FromBody] Station station)
        {
            var manager = StationDataManagerFactory.GetStationDataManager();

            return(await manager.AddStation(station));
        }
コード例 #5
0
        public async Task <IEnumerable <StationType> > GetAllTypes()
        {
            var manager = StationDataManagerFactory.GetStationDataManager();

            return(await manager.GetAllStationTypes());
        }
コード例 #6
0
        public async Task <IEnumerable <Station> > GetAll()
        {
            var manager = StationDataManagerFactory.GetStationDataManager();

            return(await manager.GetAllJoined());
        }