Exemplo n.º 1
0
 private bool CanCreateBusket(object obj)
 {
     selectedIndexes = new List <int>();
     if (Plans != null)
     {
         selectedIndexes = Plans.Where(x => x.IsSelected).Select(x => x.PlanKey).ToList();
         return(selectedIndexes.Count() != 0);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public static BillingPlan GetBillingPlanByUpsellingRetentionPeriod(int retentionDays)
 {
     return(Plans.Where(p => p.RetentionDays > retentionDays).OrderBy(p => p.RetentionDays).ThenBy(p => p.Price).FirstOrDefault());
 }