public UserInfo(string userName, string password, SourceIdentity sourceIdentity, PersonNameInfo personNameInfo) { UserName = userName; Password = password; SourceIdentity = sourceIdentity; PersonNameInfo = personNameInfo; }
public Person Find(PersonNameInfo personNameInfo) { var identity = personNameInfo.SourceIdentity; var personName = _personNameRepository .GetAll(x => x.Source.IsSameAs(identity.Source) && x.SourceRef.IsSameAs(identity.SourceRef) && x.SourceSys.IsSameAs(identity.SourceSys)) .FirstOrDefault(); if (null != personName) { return(_personRepository.Get(personName.PersonId)); } return(null); }
public static PersonName Create(PersonNameInfo personNameInfo) { return(new PersonName(personNameInfo.FirstName, personNameInfo.MiddleName, personNameInfo.LastName, personNameInfo.MothersName, personNameInfo.SourceIdentity.Source, personNameInfo.SourceIdentity.SourceRef, personNameInfo.SourceIdentity.SourceSys, personNameInfo.NickName)); }
public UserInfo(string userName, string password, int?phone, string email, SourceIdentity sourceIdentity, PersonNameInfo personNameInfo) : this(userName, password, sourceIdentity, personNameInfo) { Phone = phone; Email = email; }