示例#1
0
 // CREATE PERSONNEL
 public static void create(Personnels Personnel)
 {
     using (var context = new TacheContext())
     {
         context.Personnel.Add(Personnel);
         context.SaveChanges();
     }
 }
示例#2
0
 public static void addPersonnelToTask(Taches taches, Personnels personnels)
 {
     using (var context = new TacheContext())
     {
         context.Tache.Update(taches);
         context.SaveChanges();
     }
 }
示例#3
0
 public static Boolean Create(Taches taches)
 {
     using (var context = new TacheContext())
     {
         context.Tache.Add(taches);
         context.SaveChanges();
         return(true);
     }
     return(false);
 }
示例#4
0
 public IActionResult Create(Tache tache)
 {
     _context.Add(tache);
     _context.SaveChanges();
     return(RedirectToAction("Index", "Taches"));
 }