Example #1
0
        public void RemoveWorkout(int id)
        {
            Workout w = ctx.Workouts.Find(id);

            ctx.Entry(w).State = EntityState.Deleted;
            ctx.SaveChanges();
        }
Example #2
0
 public void UpdateGebruiker(Gebruiker gebruiker)
 {
     ctx.Entry(gebruiker).State = System.Data.Entity.EntityState.Modified;
     ctx.SaveChanges();
 }