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