public async Task <IActionResult> GetAll()
        {
            var productList = await _appBus.SendQueryAsync <GetAllProductQuery, List <GetAllProductQuery> >(null);

            return(Ok(productList));
        }
예제 #2
0
        public async Task <IActionResult> About()
        {
            ViewData["Message"] = await _appBus.SendQueryAsync <TestQuery, int>(new TestQuery { X = 23, Y = 20 });

            return(View());
        }