public IActionResult GetAllocatedNodesIPs(GetAllocatedNodesIPsModel model) { try { _logger.LogDebug($"Endpoint: \"JobManagement\" Method: \"GetAllocatedNodesIPs\" Parameters: \"{model}\""); ValidationResult validationResult = new JobManagementValidator(model).Validate(); if (!validationResult.IsValid) { ExceptionHandler.ThrowProperExternalException(new InputValidationException(validationResult.Message)); } return(Ok(_service.GetAllocatedNodesIPs(model.SubmittedTaskInfoId, model.SessionCode))); } catch (Exception e) { return(BadRequest(e.Message)); } }