public async Task <IActionResult> GetAll() { var productList = await _appBus.SendQueryAsync <GetAllProductQuery, List <GetAllProductQuery> >(null); return(Ok(productList)); }
public async Task <IActionResult> About() { ViewData["Message"] = await _appBus.SendQueryAsync <TestQuery, int>(new TestQuery { X = 23, Y = 20 }); return(View()); }