Example #1
0
 private Send ToSendBase(Send existingSend, ISendService sendService)
 {
     existingSend.Key            = Key;
     existingSend.ExpirationDate = ExpirationDate;
     existingSend.DeletionDate   = DeletionDate.Value;
     existingSend.MaxAccessCount = MaxAccessCount;
     if (!string.IsNullOrWhiteSpace(Password))
     {
         existingSend.Password = sendService.HashPassword(Password);
     }
     existingSend.Disabled = Disabled.GetValueOrDefault();
     return(existingSend);
 }