Exemple #1
0
        public async Task <List <Category> > GetCategoriesAsync()
        {
            var request = new GetCategories.Request();

            setupPermissions(request);
            return((await _dispatcher.DispatchAsync <GetCategories.Request, GetCategories.Response>(request)).Categories);
        }
Exemple #2
0
        public List <Category> GetCategories()
        {
            var request = new GetCategories.Request();

            setupPermissions(request);
            return(_dispatcher.Dispatch <GetCategories.Request, GetCategories.Response>(request).Categories);
        }