public static Tuple <string, string> GetThumbByGameId(int id, bool forceUpdate) { DbGame game; if (forceUpdate) { game = DbAccess.GetDbGameView(id); return(game == null ? null : RefreshThumb(game)); } var existingThumb = DbAccess.GetThumb(id); if (existingThumb != null) { return(new Tuple <string, string>(existingThumb.ImageUrl, existingThumb.ContentType)); } game = DbAccess.GetDbGameView(id); return(game == null ? null : RefreshThumb(game)); }