protected string FormatStudentList(UserProvisioningInfo[] studentList) { var studentUserKeyList = new List<string>(); foreach (UserProvisioningInfo student in studentList) { studentUserKeyList.Add(student.UserKey); } return String.Join(", ", studentUserKeyList.ToArray()); }
protected string FormatInstructorList(UserProvisioningInfo[] instructorList) { var instructorText = new StringBuilder(); foreach (UserProvisioningInfo instructor in instructorList) { instructorText.Append( String.Format("{0} ({1} {2} <{3}>)<br />", instructor.UserKey, instructor.FirstName, instructor.LastName, instructor.Email)); } return instructorText.ToString(); }