Example #1
0
        public async Task <Unit> Handle(EditMatchGeneralAttributesCommand request, CancellationToken cancellationToken)
        {
            var match = await _matchRepository.GetAsync(new MatchId(request.MatchId));

            match.EditGeneralAttributes(request.Name, request.UtcDate, request.Score, request.Season, request.Status);

            await _matchRepository.CommitAsync();

            return(Unit.Value);
        }