public static void Update(WebUser webUser) { using (MVCFormContext db = new MVCFormContext()) { db.Entry(webUser).State = EntityState.Modified; db.SaveChanges(); } }
public void Update(TEntity entity) { using (MVCFormContext db = new MVCFormContext()) { db.Entry(entity).State = EntityState.Modified; db.SaveChanges(); } }
public static void Update(RootObject rootObject) { using (MVCFormContext db = new MVCFormContext()) { db.Entry(rootObject).State = EntityState.Modified; db.SaveChanges(); } }
public static void Update(Field field) { using (MVCFormContext db = new MVCFormContext()) { db.Entry(field).State = EntityState.Modified; db.SaveChanges(); } }