public User(string firstName, string lastName, int age, string userName, string password, int phoneNumber) : base(firstName, lastName, age, userName, password, phoneNumber) { DateOfRegistration = DateTime.Now; if (TypeOfSubscription == TypeOfSubscription.Annually) { ExpireDate = DateTime.Now.AddDays(30); } else if (TypeOfSubscription == TypeOfSubscription.Monthly) { ExpireDate = DateOfRegistration.AddDays(30); } }
public User() { DateOfRegistration = DateTime.Now; if (SubscriptionType == SubscriptionType.Annual) { EndOfRegistration = DateTime.Now.AddDays(365); } else if (SubscriptionType == SubscriptionType.Monthly) { EndOfRegistration = DateOfRegistration.AddDays(30); } Role = Role.User; Movies = new Movie[0]; }