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); }
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); }