예제 #1
0
 /// <summary>
 /// Get a facade that manages all the stories of this project
 /// </summary>
 /// <returns>facade that manages the result</returns>
 public StoriesFacade All()
 {
     return(new StoriesFacade(this, _storyRepository.GetStories(this.ParentFacade.Item.Id)));
 }
예제 #2
0
        public IEnumerable <Story> GetStoriesForProject(int id)
        {
            var stories = _pivotalStoryRepository.GetStories(id);

            return(Mapper.Map <IEnumerable <PivotalStory>, IEnumerable <Story> >(stories));
        }