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