/// <summary>
 /// constractor.
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="host"></param>
 /// <param name="unit"></param>
 public Email(GuestRequestBO request, HostingUnitBO unit, HostBO host, PersonBO clientPerson)
 {
     Request      = request;
     HostName     = host.PersonalInfo.FirstName + " " + host.PersonalInfo.LastName;
     ToEmailAdd   = clientPerson.Email;
     FromEmailAdd = host.PersonalInfo.Email;
     FromDate     = request.EntryDate;
     ToDate       = request.LeaveDate;
     Unit         = unit;
 }
 public static BO.PersonBO ConverFrom_DO_To_BoPerson(DO.Person other)
 {
     BO.PersonBO copy = new BO.PersonBO();
     copy.Id        = other.Id;
     copy.Email     = other.Email;
     copy.FirstName = other.FirstName;
     copy.LastName  = other.LastName;
     copy.IdType    = (BO.IdType)other.IdType;
     copy.Password  = other.Password;
     copy.Phone     = other.Phone;
     copy.Status    = (BO.StatusPerson)other.Status;
     return(copy);
 }
 public static DO.Person ConverFrom_BO_To_DoPerson(BO.PersonBO other)
 {
     DO.Person copy = new DO.Person();
     copy.Id        = other.Id;
     copy.Email     = other.Email;
     copy.FirstName = other.FirstName;
     copy.LastName  = other.LastName;
     copy.IdType    = (DO.IdType)other.IdType;
     copy.Password  = other.Password;
     copy.Phone     = other.Phone;
     copy.Status    = (DO.StatusPerson)other.Status;
     return(copy);
 }