public dtoProfileAttributeType(ProfileAttributeType attribute, Boolean mandatory, UserTypeStandard userType) : this() { Attribute = attribute; Mandatory = mandatory; UserType = userType; List <ProfileAttributeType> AlternativeAttributes = new List <ProfileAttributeType>(); }
public dtoProfileAttributeType(ProfileAttributeType attribute, Boolean mandatory, UserTypeStandard userType, List <ProfileAttributeType> alternatives) { Attribute = attribute; Mandatory = mandatory; UserType = userType; this.AlternativeAttributes = alternatives; }
public dtoProfileAttributeType(ProfileAttributeType attribute, UserTypeStandard userType) { Attribute = attribute; Mandatory = true; UserType = userType; List <ProfileAttributeType> AlternativeAttributes = new List <ProfileAttributeType>(); }
public Person GetDefaultUser(UserTypeStandard type) { Person person = null; try { person = (from p in Manager.GetIQ <Person>() where p.TypeID == (int)type select p).Skip(0).Take(1).FirstOrDefault(); } catch (Exception ex) { } return(person); }