Example #1
0
        public IActionResult GetById(GameByIdModel gameByIdModel)
        {
            var result = _gameDataAccess.GetByIdAsync(gameByIdModel.Id).Result;

            if (result == null)
            {
                return(BadRequest("Not found"));
            }

            return(Ok(result));
        }