Example #1
0
 public Invitation(string email, int hId)
 {
     Email       = email;
     HouseholdId = hId;
     Code        = Guid.NewGuid().ToString();
     Created     = DateTimeOffset.Now;
     Expires     = Created.AddDays(7);
     SenderId    = HttpContext.Current.User.Identity.GetUserId();
 }
Example #2
0
 public FileInfo()
 {
     Id         = Guid.NewGuid().ToString();
     Created    = DateTime.Now;
     Expiration = Created.AddDays(1);
 }
Example #3
0
 public Task()
 {
     Id       = new Guid();
     Created  = DateTime.Now;
     TillDate = Created.AddDays(1);
 }