private async void FindAllPeople() { ShowBusy("finding..."); try { var peopleResult = await FindPeople.ExecuteAsync(new FindGroupPeopleContext { GroupId = Constants.GroupId }); if (peopleResult.IsValid()) { Message = $"Found {peopleResult.People.Count} people already in the group!"; } else { Message = peopleResult.Notification.ToString(); } } finally { NotBusy(); } }
public async Task <IEnumerable <Person> > Handle(FindPeople request, CancellationToken cancellationToken) { var response = await _db.People.ToListAsync().ConfigureAwait(false); return(response); }