Exemple #1
0
        public async Task <IActionResult> CategoryList(int category)
        {
            var commandClient = new CommandClient(new HttpClient());
            var commands      = await commandClient.ListAsync();

            return(Ok(commands.Where(x => x.Categories.Contains((CommandCategory)category))));
        }
Exemple #2
0
        public async Task <IActionResult> List()
        {
            var commandClient = new CommandClient(new HttpClient());
            var commands      = await commandClient.ListAsync();

            return(Ok(commands));
        }