public async Task <Response <Unit> > Handle(ProjetoAtualizarCommand request, CancellationToken cancellationToken) { projeto.SetProjeto(request); await _projetoRepository.Atualizar(projeto); //await _uow.Commit(); return(retorno.ResponseMessage("Projeto atualizado com sucesso")); }
public async Task <IActionResult> PutAsync(Guid id, [FromBody] ProjetoAtualizarCommand Projeto) { Projeto.SetId(id); return(Ok(await Mediator.Send(Projeto))); }