/// <summary>
 /// Fetches current releases from Pivotal and optionally reloads the cache and uses the cache
 /// </summary>
 /// <remarks>The cache is updated with all stories, not just releases, so this can be more intensive than intended.</remarks>
 /// <param name="user">The user to get the ApiToken from</param>
 /// <param name="options">Options for caching</param>
 /// <returns>releases for the project</returns>
 public IList <PivotalStory> FetchReleases(PivotalUser user, PivotalFetchOptions options)
 {
     if (options.RefreshCache)
     {
         _storyCache = (List <PivotalStory>)PivotalStory.FetchStories(user, Id.GetValueOrDefault());
     }
     if (options.UseCachedItems)
     {
         return(_storyCache.Where(x => x.StoryType == PivotalStoryType.release).ToList());
     }
     return(PivotalStory.FetchStories(user, Id.GetValueOrDefault(), PivotalFilterHelper.BuildStoryTypeFilter(PivotalStoryType.release, "")));
 }
 /// <summary>
 /// Fetches current releases from Pivotal
 /// </summary>
 /// <param name="user">The user to get the ApiToken from</param>
 /// <returns>releases for the project</returns>
 public IList <PivotalStory> FetchReleases(PivotalUser user)
 {
     return(PivotalStory.FetchStories(user, Id.GetValueOrDefault(), PivotalFilterHelper.BuildStoryTypeFilter(PivotalStoryType.release, "")));
 }