internal void GenerateResponseWithError(FileNameDto file, IEnumerable <ErrorDto> errorList)
        {
            var fileInformation = new List <string>();
            var serializeError  = serialize.Execute(errorList);

            if (serializeError.Failure)
            {
                fileInformation.Add(serializeError.ErrorList.FirstOrDefault().Message);
            }
            fileInformation.Add(serializeError.Result);

            GenerateFile(fileInformation, file.BuildNameErrorResponse());
            MoveFileReqProcessed(file);
        }
        internal OperationResult <T> CallServicePost <R, T>(R request, string method)
        {
            InitializeClient();
            var jsonRequestProcess = serialize.Execute(request);

            if (jsonRequestProcess.Failure)
            {
                return(new OperationResult <T>(jsonRequestProcess.ErrorList));
            }
            HttpContent content = new StringContent(jsonRequestProcess.Result, Encoding.UTF8, "application/json");

            string responseString;
            var    url = Path.Combine(serviceSecurity.Url, method);

            try
            {
                var response = client.PostAsync(url, content).Result;
                responseString = response.Content.ReadAsStringAsync().Result;
            }
            catch (Exception ex)
            {
                return(new OperationResult <T>(ErrorDto.BuildTechnical(ex.Message)));
            }

            return(deserialize.Execute <T>(responseString));
        }