public async Task <Unit> Handle(ActualizarUsuarioRequest request, CancellationToken cancellationToken) { if (request.User == null) { throw new BadRequestProjectException("Invalid user"); } logger.LogInformation("Actualizar usuario", $"{request.User.Apellido} {request.User.Nombre}"); var entity = mapper.Map <UserEntity>(request.User); await service.ActualizarUsuarioAsync(entity); return(Unit.Value); }