Пример #1
0
 public void UpdatePage(Page Page)
 {
     try
     {
         db.Entry(Page).State = EntityState.Modified;
         db.SaveChanges();
     }
     catch
     {
         throw;
     }
 }
Пример #2
0
 public void UpdateSite(Site site)
 {
     try
     {
         db.Entry(site).State = EntityState.Modified;
         db.SaveChanges();
     }
     catch
     {
         throw;
     }
 }
Пример #3
0
 public void UpdateUser(User user)
 {
     try
     {
         db.Entry(user).State = EntityState.Modified;
         db.SaveChanges();
     }
     catch
     {
         throw;
     }
 }
Пример #4
0
 public void UpdateModule(Module Module)
 {
     try
     {
         db.Entry(Module).State = EntityState.Modified;
         db.SaveChanges();
     }
     catch
     {
         throw;
     }
 }