示例#1
0
        public async Task <IActionResult> IndexAsync()
        {
            var r = await module.QueryAsync(new GamesQuery());

            if (AcceptsHtml(Request.Headers))
            {
                return(View(@"game\Games.cshtml", r));
            }

            return(Ok(r));
        }