public void UpdateStory(Story story) { // update story in the database context.Story.Update(story); context.SaveChanges(); }
public void UpdateStory(Story story) { // simulate updating story in db throw new NotImplementedException(); }
public void AddStory(Story story) { // store in database context.Story.Add(story); context.SaveChanges(); }
public void AddStory(Story story) { // simulate db primary key story.StoryID = stories.Count; stories.Add(story); }