Exemplo n.º 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))));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> List()
        {
            var commandClient = new CommandClient(new HttpClient());
            var commands      = await commandClient.ListAsync();

            return(Ok(commands));
        }