public IActionResult CopyJobDataFromTemp(CopyJobDataFromTempModel model) { try { _logger.LogDebug($"Endpoint: \"JobManagement\" Method: \"CopyJobDataFromTemp\" Parameters: \"{model}\""); ValidationResult validationResult = new JobManagementValidator(model).Validate(); if (!validationResult.IsValid) { ExceptionHandler.ThrowProperExternalException(new InputValidationException(validationResult.Message)); } _service.CopyJobDataFromTemp(model.CreatedJobInfoId, model.SessionCode, model.TempSessionCode); return(Ok("Data were copied to Temp")); } catch (Exception e) { return(BadRequest(e.Message)); } }