Ejemplo n.º 1
0
        public IActionResult Delete(GameDeleteModel gameDeleteModel)
        {
            var result = _gameDataAccess.DeleteAsync(gameDeleteModel.Id).Result;

            if (result == null)
            {
                return(BadRequest("Game silinemedi!"));
            }

            return(Ok(new { result }));
        }