public void Update(Post post) { this.posts.Update(post); this.posts.SaveChanges(); }
public void AddEstate(Post post) { this.posts.Add(post); this.posts.SaveChanges(); }