public static void addPersonnelToTask(Taches taches, Personnels personnels) { using (var context = new TacheContext()) { context.Tache.Update(taches); context.SaveChanges(); } }
public static Boolean Create(Taches taches) { using (var context = new TacheContext()) { context.Tache.Add(taches); context.SaveChanges(); return(true); } return(false); }