public Article Update(Article article) { _databasecontext.Entry(article).State = EntityState.Modified; _databasecontext.SaveChanges(); return article; }
public void Delete(Article article) { _databasecontext.Articles.Remove(article); _databasecontext.SaveChanges(); }
public Article Add(Article article) { _databasecontext.Articles.Add(article); _databasecontext.SaveChanges(); return article; }