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