public ActionResult <ItemResponse <GameWithLinks> > GetById(int id) { try { GameWithLinks item = _gamesServices.GetById(id); if (item == null) { return(NotFound404(new ErrorResponse("Record Not Found"))); } else { ItemResponse <GameWithLinks> response = new ItemResponse <GameWithLinks>(); response.Item = item; return(Ok200(response)); } } catch (Exception ex) { Logger.LogError(ex.ToString()); return(StatusCode(500, new ErrorResponse(ex.Message))); } }