コード例 #1
0
 public async Task <IList <Business> > GetAllAsync()
 {
     using (var database = new BusinessDatabase())
     {
         return(await database.SearchBusinessAsync(null));
     }
 }
コード例 #2
0
 public async Task <IList <Business> > FindByNameAsync(string name)
 {
     using (var database = new BusinessDatabase())
     {
         return(await database.SearchBusinessAsync(name));
     }
 }