Exemple #1
0
 public bool UpdateGroup(Models.PageGroups pageGroup)
 {
     try
     {
         db.Entry(pageGroup).State = EntityState.Modified;
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemple #2
0
 public bool UpdatePage(Models.Page page)
 {
     try
     {
         db.Entry(page).State = EntityState.Modified;
         return(true);
     }
     catch
     {
         return(false);
     }
 }