示例#1
0
 private Attendance SetState(AttendanceResponse attende, Attendance currentMember)
 {
     if ((attende.Status != null
          &&
          attende.Status == "attended"))
     {
         currentMember.Attend();
     }
     else if ((attende.Status != null
               &&
               attende.Status == "absent"))
     {
         currentMember.NoAttend();
     }
     else
     {
         currentMember.SetDoNotKnow();
     }
     return(currentMember);
 }