Exemplo n.º 1
0
        public bool Handle(AddSubscriptionToProfileCommand cmd)
        {
            if (ContainsSubscription(cmd.InstructorId))
            {
                return(true);
            }

            EnableSubscription(cmd.InstructorId);

            return(ContainsSubscription(cmd.InstructorId));
        }
Exemplo n.º 2
0
 public bool Handle(AddSubscriptionToProfileCommand cmd) => AppDetails.Handle(cmd);