示例#1
0
        public async Task <Unit> Handle(IniciarProjetoCommand command, CancellationToken cancellationToken)
        {
            var projeto = await _repository.ObterAsync(command.Id);

            projeto.Iniciar();

            await _repository.IniciarAsync(projeto);

            return(Unit.Value);
        }