예제 #1
0
 public void UpdateShiftTarget(ShiftTarget shiftTarget)
 {
     using (var db = new WeighrContext())
     {
         db.ShiftTargets.Update(shiftTarget);
         db.SaveChanges();
     }
 }
예제 #2
0
 public void AddShiftTarget(ShiftTarget shiftTarget)
 {
     using (var db = new WeighrContext())
     {
         db.ShiftTargets.Add(shiftTarget);
         db.SaveChanges();
     }
 }