public void Update(InventioPage page) { Pages data = EFAdapter(page); using (InventioEntities context = new InventioEntities()) { context.Pages.Attach(data); context.Entry(data).State = EntityState.Modified; context.SaveChanges(); } }
public void Update(InventioNavigationNode node) { Navigation data = EFAdapter(node); using (InventioEntities context = new InventioEntities()) { context.Navigation.Attach(data); context.Entry(data).State = EntityState.Modified; context.SaveChanges(); } }
public void Update(InventioLayout layout) { // TODO REVISAR NO TESTEADO Layouts data = EFAdapter(layout); using (InventioEntities context = new InventioEntities()) { context.Layouts.Attach(data); context.Entry(data).State = EntityState.Modified; context.SaveChanges(); } }