Epiworx.Business.StoryRepository.StoryDelete C# (CSharp) Method

StoryDelete() public static method

public static StoryDelete ( Story story ) : bool
story Story
return bool
        public static bool StoryDelete(Story story)
        {
            ProjectUserRepository.AuthorizeProjectUser(story.ProjectId);

            Story.DeleteStory(
                new StoryDataCriteria
                {
                    StoryId = story.StoryId
                });

            FeedRepository.FeedAdd(FeedAction.Deleted, story);

            return true;
        }

Same methods

StoryRepository::StoryDelete ( int storyId ) : bool

Usage Example

Example #1
0
 public static bool StoryDelete(int storyId)
 {
     return(StoryRepository.StoryDelete(
                StoryRepository.StoryFetch(storyId)));
 }