public static DO.Host ConverFrom_BO_To_DoHost(BO.HostBO other)
 {
     DO.Host per = new DO.Host();
     per.Account             = ConverFrom_BO_To_DoBankAccount(other.Acoount);
     per.CollectionClearance = other.CollectionClearance;
     per.website             = other.Website;
     per.Id     = other.Info.Id;
     per.Status = DO.StatusActive.Active;
     return(per);
 }
Пример #2
0
 /// <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;
 }