public virtual HttpResponseMessage GetGames(int skip, int take) { if (skip < 0) { return(Request.CreateResponse(HttpStatusCode.BadRequest, "Skip cannot be negative.")); } if (take < 0) { return(Request.CreateResponse(HttpStatusCode.BadRequest, "Take cannot be negative.")); } var games = DataBridge.GetGames(skip, take); var result = new GamesModel { Games = games, MoreGames = games.Count == take }; return(Request.CreateResponse(HttpStatusCode.OK, result)); }