Beispiel #1
0
 public void SaveWorkMember(WorkMember op)
 {
     if (op.MemberID == 0)
     {
         context.WorkMemberDbSet.Add(op);
     }
     else
     {
         context.Entry(op).State = EntityState.Modified;
     }
     context.SaveChanges();
 }
Beispiel #2
0
 public void SaveWorkMember(WorkMember op)
 {
     if (op.MemberID == 0)
     {
         context.WorkMemberDbSet.Add(op);
     }
     else
     {
         context.Entry(op).State = EntityState.Modified;
     }
     context.SaveChanges();
 }