public async Task <List <Topic> > GetTopicsAsync() { var request = new GetTopics.Request(); setupPermissions(request); return((await _dispatcher.DispatchAsync <GetTopics.Request, GetTopics.Response>(request)).Topics); }
public List <Topic> GetTopics() { var request = new GetTopics.Request(); setupPermissions(request); return(_dispatcher.Dispatch <GetTopics.Request, GetTopics.Response>(request).Topics); }