public void Update(Article article) { if (article != null) { Context.Entry(article).State = EntityState.Modified; } }
public void Create(Article article) { if (article != null) { Context.Articles.Add(article); } }