Example #1
0
 public int UpdateBlog(BlogPost entry, IList <string> tags)
 {
     Save();
     return(AddTags(entry.Id, tags));
 }
Example #2
0
 public int DeleteBlog(BlogPost entry)
 {
     RemoveTags(entry.Id);
     _db.BlogPosts.Remove(entry);
     return(Save());
 }
Example #3
0
 public int AddBlog(BlogPost entry, IList <string> tags)
 {
     _db.BlogPosts.Add(entry);
     Save();
     return(AddTags(entry.Id, tags));
 }