protected static Registration GetRegistrationFromReader(SqlDataReader reader) { Registration reg = new Registration(); reg.Id = ((Guid)reader["registration_id"]).ToString(); reg.LearningId = ((Guid)reader["learning_id"]).ToString(); reg.Email = (String)reader["registration_email"]; reg.LastActivityTime = (DateTime)reader["last_activity_time"]; return reg; }
public void AddRow(Registration reg, String totalTime, String complete, String success, String score) { _rowsHtml.AppendLine(GetRowHtml(reg, totalTime, complete, success, score)); }