Пример #1
0
            protected override async Task <Unit> InnerHandleAsync(DeleteGoalAction action, CancellationToken cancellationToken)
            {
                var goal = GoalState._goals.Single(g => g.Id == action.Id);

                goal.IsDeleted = true;
                await _kanbanClient.UpdateGoalAsync(goal.ToGoalDto());

                return(Unit.Value);
            }
Пример #2
0
            protected override async Task <Unit> InnerHandleAsync(ChangeGoalStatusAction aAction, CancellationToken aCancellationToken)
            {
                var goal = GoalState._goals.Single(g => g.Id == aAction.Id);

                goal.SetGoalStatus(aAction.NewStatus);
                await _kanbanClient.UpdateGoalAsync(goal.ToGoalDto());

                return(Unit.Value);
            }