Beispiel #1
0
 public Trainee GetTrainee()
 {
     return(new Trainee()
     {
         Email = Email,
         IsActive = false,
         Name = Name,
         Joined = DateTime.Now,
         Expired = DateTime.Now.AddDays(7),
         Phone = Phone,
         Changed = DateTime.Now,
         Token = Convert.ToBase64String(Guid.NewGuid().ToByteArray()),
         Password = Password.CalculateMd5Hash(),
         Point = 0
     });
 }