namespace DataModel.Models { /// /// LDAP search result /// public class LDAPEntry { /// /// LDAP distinguished name /// public string DN { get; set; } /// /// LDAP username /// public string Username { get; set; } /// /// User's first name /// public string FirstName { get; set; } /// /// User's last name /// public string LastName { get; set; } /// /// User's display name /// public string DisplayName { get { if (string.IsNullOrEmpty(LastName) && string.IsNullOrEmpty(FirstName)) { return Username; } return $"{FirstName} {LastName}".Trim(); } } /// /// Organization title /// public string Title { get; set; } /// /// User's email address /// public string EmailAddress { get; set; } } }