Exemplo n.º 1
0
        public async Task <IActionResult> GetGame(int id)
        {
            var game = await _service.GetByIdAsync(id);

            return(game == null?NotFound($"Game with id = {id} not found!") as IActionResult
                   : Ok(game));
        }