Пример #1
0
 public static HostDto ToDTO(DAL.Host model)
 {
     if (model is null)
     {
         return(null);
     }
     return(new HostDto()
     {
         HostID = model.HostID,
         HostName = model.HostName,
         BirthDate = model.BirthDate,
         gender = model.gender,
         HostEmail = model.HostEmail,
         HostTel = model.HostTel,
         HostTextDetails = model.HostTextDetails,
         HostPassword = model.User.UserPassword,
         UserName = model.User.UserName,
         //UserID=model.User.UserId,
         // UserName=model.User.UserName,
         // UserPassword=model.User.UserPassword
         //UserDto = BL.User.ToDTO(model.User)
     });
 }