示例#1
0
        public static DateTime CalculateForRenewal(DateTime expirationDate, SubscriptionPeriod period)
        {
            if (expirationDate > SystemClock.Now)
            {
                return(expirationDate.AddMonths(period.GetMonthsNumber()));
            }

            return(SystemClock.Now.AddMonths(period.GetMonthsNumber()));
        }
示例#2
0
 public static DateTime CalculateForNew(SubscriptionPeriod period)
 {
     return(SystemClock.Now.AddMonths(period.GetMonthsNumber()));
 }