コード例 #1
0
        public bool Handle(AddSubscriptionToProfileCommand cmd)
        {
            if (ContainsSubscription(cmd.InstructorId))
            {
                return(true);
            }

            EnableSubscription(cmd.InstructorId);

            return(ContainsSubscription(cmd.InstructorId));
        }
コード例 #2
0
 public bool Handle(AddSubscriptionToProfileCommand cmd) => AppDetails.Handle(cmd);