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(); }
public FileInfo() { Id = Guid.NewGuid().ToString(); Created = DateTime.Now; Expiration = Created.AddDays(1); }
public Task() { Id = new Guid(); Created = DateTime.Now; TillDate = Created.AddDays(1); }