Beispiel #1
0
        public async Task <List <Topic> > GetCategoryTopicsAsync(string categoryCode)
        {
            var request = new GetCategoryTopics.Request {
                CategoryCode = categoryCode
            };

            setupPermissions(request);
            return((await _dispatcher.DispatchAsync <GetCategoryTopics.Request, GetCategoryTopics.Response>(request)).Topics);
        }
Beispiel #2
0
        public List <Topic> GetCategoryTopics(string categoryCode)
        {
            var request = new GetCategoryTopics.Request {
                CategoryCode = categoryCode
            };

            setupPermissions(request);
            return(_dispatcher.Dispatch <GetCategoryTopics.Request, GetCategoryTopics.Response>(request).Topics);
        }