FetchStory() static private method

static private FetchStory ( StoryData data ) : Story
data StoryData
return Story
Example #1
0
        public static Story StoryFetch(int storyId)
        {
            var result = Story.FetchStory(
                new StoryDataCriteria
            {
                StoryId = storyId
            });

            result.Auditor = new StoryAuditor(result.Clone());

            return(result);
        }
 private void OnStoryIdChanged()
 {
     if (this.StoryId == 0)
     {
         this.ProjectId   = 0;
         this.ProjectName = string.Empty;
     }
     else
     {
         var story = Story.FetchStory(new StoryDataCriteria {
             StoryId = this.StoryId
         });
         this.ProjectId   = story.ProjectId;
         this.ProjectName = story.ProjectName;
     }
 }