Exemple #1
0
        private bool EnableSubscription(string instructorId)
        {
            var list = Subscriptions.ToList();

            list.Add(SubscriptionDetails.Create(instructorId, new List <ClassDetails>()));
            this.Subscriptions = list;
            return(ContainsSubscription(instructorId));
        }
Exemple #2
0
 public bool Handle(UpdateSubscriptionDetailsCommand cmd) => SubscriptionDetails.Handle(cmd);