示例#1
0
        public async Task <Domain.Plan> Handle(AcceptPlanCommand request, CancellationToken cancellationToken)
        {
            Plan plan = this._planRepository.GetPlan(request.PlanId);
            User user = await this._userRepository.GetAsync(request.UserId);

            plan.Assign(UserFactory.CreateAssignee(user));
            return(plan);
        }