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