Пример #1
0
 public void EditNews(News news)
 {
     news.CreateTime            = DateTime.Now;
     database.Entry(news).State = EntityState.Modified;
     database.SaveChanges();
 }
Пример #2
0
 public void Edit(Partner pm)
 {
     database.Entry(pm).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     database.SaveChanges();
 }
Пример #3
0
 public void EditAccount(User acc)
 {
     database.Entry(acc).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     database.SaveChanges();
 }
Пример #4
0
 public void Edit(Promo pm)
 {
     database.Entry(pm).State = EntityState.Modified;
     database.SaveChanges();
 }
Пример #5
0
 public void EditService(Service svc)
 {
     database.Entry(svc).State = EntityState.Modified;
     database.SaveChanges();
 }
Пример #6
0
 public void EditEvent(Event e)
 {
     e.CreateTime            = DateTime.Now;
     database.Entry(e).State = EntityState.Modified;
     database.SaveChanges();
 }