public async Task <bool> DeleteStation(int id, [FromBody] Station station) { var manager = StationDataManagerFactory.GetStationDataManager(); return(await manager.DeleteStation(station)); }
public async Task <IEnumerable <Station> > GetByCommunityId(int id) { var manager = StationDataManagerFactory.GetStationDataManager(); return(await manager.GetStationByCommunityId(id)); }
public async Task <Station> GetById(int id) { var manager = StationDataManagerFactory.GetStationDataManager(); return(await manager.GetStationById(id)); }
public async Task <bool> AddStation([FromBody] Station station) { var manager = StationDataManagerFactory.GetStationDataManager(); return(await manager.AddStation(station)); }
public async Task <IEnumerable <StationType> > GetAllTypes() { var manager = StationDataManagerFactory.GetStationDataManager(); return(await manager.GetAllStationTypes()); }
public async Task <IEnumerable <Station> > GetAll() { var manager = StationDataManagerFactory.GetStationDataManager(); return(await manager.GetAllJoined()); }