public string GetExternalIDValue(PersonDetailsDTO personDetails, string type) { string externalIDValue = personDetails.ExternalIDs.Where(x => x.Type == type).Count() > 0 ? personDetails.ExternalIDs.Where(x => x.Type == type).FirstOrDefault().Value : null; return(externalIDValue); }
/// <summary> /// Copy constructor used to populate the object /// </summary> /// <param name="source">The source Person entity for the DTO</param> /// <param name="contacts">The list of contacts for the Person</param> /// <param name="externalIDs">The list of external IDs for the person</param> /// <param name="groups">The list of Groups the person belongs too</param> public UserDetailsWithCreateStatusDTO(PersonDetailsDTO details, string errorMessage = "") { Person = details; ErrorMessage = errorMessage; }