public async Task <RolDto> Handle(CreateRolCommand request, CancellationToken cancellationToken) { var result = await _service.CreateRol(request.Rol); if (!result) { throw new ErrorException("01", "Error tratando de crear Rol"); } return(_mapper.Map <RolDto>(request.Rol)); }