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