Пример #1
0
 public async Task <IEnumerable <Station> > FilterByRegion(Community community)
 {
     try {
         IStationDao stationDao = GetIStationDao();
         return(await stationDao.FindByCommunityIdAsync(community.Id));
     }
     catch (Exception) {
         return(null);
     }
 }
Пример #2
0
 public async Task <IEnumerable <Station> > GetStationByCommunityId(int communityId)
 {
     try {
         IStationDao stationDao = GetIStationDao();
         return(await stationDao.FindByCommunityIdAsync(communityId));
     }
     catch (Exception) {
         return(null);
     }
 }