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