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); }