public void EditNews(News news) { news.CreateTime = DateTime.Now; database.Entry(news).State = EntityState.Modified; database.SaveChanges(); }
public void Edit(Partner pm) { database.Entry(pm).State = Microsoft.EntityFrameworkCore.EntityState.Modified; database.SaveChanges(); }
public void EditAccount(User acc) { database.Entry(acc).State = Microsoft.EntityFrameworkCore.EntityState.Modified; database.SaveChanges(); }
public void Edit(Promo pm) { database.Entry(pm).State = EntityState.Modified; database.SaveChanges(); }
public void EditService(Service svc) { database.Entry(svc).State = EntityState.Modified; database.SaveChanges(); }
public void EditEvent(Event e) { e.CreateTime = DateTime.Now; database.Entry(e).State = EntityState.Modified; database.SaveChanges(); }