Exemple #1
0
 public async Task <IEnumerable <CorporateEntity> > Handle(GetCorporateEntitiesQuery message)
 {
     return(await Task.Factory.StartNew(() =>
     {
         return CorporateEntityDataStore.get(message.startIndex, message.length);
     }));
 }
Exemple #2
0
 public async Task <IEnumerable <CorporateEntity> > Handle(GetCorporateEntityQuery message)
 {
     return(await Task.Factory.StartNew(() =>
     {
         return CorporateEntityDataStore.get((x) => x.Id == message.Id);
     }));
 }