public static Evenement ModifEvent(Evenement e) { AspDbContext context = new AspDbContextFactory().CreateDbContext(null); context.Update(e); context.SaveChanges(); return(e); }
public object ModifObjToDB(object o) { AspDbContext context = new AspDbContextFactory().CreateDbContext(null); var test = context.Update(o); if (context.SaveChanges() == -1) { return(false); } else { return(true); } }