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