public IActionResult AddVideoGame(VideoGame videoGame) { try { _videoGameService.AddVideoGame(videoGame); return(CreatedAtAction("AddVideoGame", videoGame)); } catch (Exception) { return(BadRequest()); } }
public IActionResult AddVideoGame(VideoGame videoGame) { try { _videoGameService.AddVideoGame(videoGame); return(CreatedAtAction("AddVideoGame", videoGame)); } catch (Exception) { return(BadRequest()); } }