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