public IActionResult PutPerfilVehiculo(int idUsuario, int idVehiculo, [FromBody] PerfilVehiculoDTO perfilVehiculoDto) { try { var vehiculo = vehiculoMapper.FromPerfilVehiculoDTO(perfilVehiculoDto); return(Ok(vehiculoMapper.ToPerfilVehiculoDTO(vehiculoService.Actualizar(vehiculo, idUsuario)))); } catch (FormatException fe) { return(UnprocessableEntity(new ErrorResponse(StatusCodes.Status422UnprocessableEntity, fe.Message))); } catch (Exception e) { return(errorResponseFactory.InternalServerErrorResponse(e)); } }