public static Story StoryInsert(Story story) { story = story.Save(); SourceRepository.SourceAdd(story.StoryId, SourceType.Story, story.StoryId.ToString()); FeedRepository.FeedAdd(FeedAction.Created, story); return(story); }
public static Story StoryUpdate(Story story) { if (!story.IsDirty) { return(story); } story = story.Save(); SourceRepository.SourceUpdate(story.StoryId, SourceType.Story, story.StoryId.ToString()); FeedRepository.FeedAdd(FeedAction.Edited, story); return(story); }
public static Story StoryUpdate(Story story) { if (!story.IsDirty) { return story; } story = story.Save(); SourceRepository.SourceUpdate(story.StoryId, SourceType.Story, story.StoryId.ToString()); FeedRepository.FeedAdd(FeedAction.Edited, story); return story; }
public static Story StoryInsert(Story story) { story = story.Save(); SourceRepository.SourceAdd(story.StoryId, SourceType.Story, story.StoryId.ToString()); FeedRepository.FeedAdd(FeedAction.Created, story); return story; }