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