public void UpdateBlog(Blog blog) { context.Entry(blog).State = EntityState.Modified; }
public void InsertBlog(Blog blog) { context.Blogs.Add(blog); }