public async Task <OperationResult> Handle(UpdateRecursoProjetoCommand request, CancellationToken cancellationToken)
    {
        _unitOfWork.RecursoProjetoRepository.Update(_mapper.Map <RecursoProjeto>(request.RecursoProjeto));

        bool success = await _unitOfWork.SaveChangesAsync();

        OperationResult result = success ? OperationResult.Success : OperationResult.Failed;

        return(result);
    }
 public async UnaryResult <OperationResult> UpdateAsync(UpdateRecursoProjetoCommand command)
 {
     return(await _mediator.Send(command));
 }