public async Task <IEnumerable <Station> > FilterByRegion(Community community) { try { IStationDao stationDao = GetIStationDao(); return(await stationDao.FindByCommunityIdAsync(community.Id)); } catch (Exception) { return(null); } }
public async Task <IEnumerable <Station> > GetStationByCommunityId(int communityId) { try { IStationDao stationDao = GetIStationDao(); return(await stationDao.FindByCommunityIdAsync(communityId)); } catch (Exception) { return(null); } }