Exemple #1
0
        public Status AddStory(Story story)
        {
            try
            {
                IStoryRepository storyRepository = new StoryRepository();

                currentStory = storyRepository.InsertStory(story);

                storyRepository.Save();

                SetCurrentStory(currentStory);


                return(Status.Success);
            }
            catch (Exception)
            {
                return(Status.Fail);
            }
        }