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