public void GetMetricsData(string webServiceId, bool fromFile, bool byRow)
        {
            var initialMetricsData      = _loadTestDataIOManager.ReadTestData(webServiceId, fromFile);
            var preprocessedMetricsData = _loadTestDataPreprocessor.PreprocessMetricsData(initialMetricsData, webServiceId, byRow, fromFile);

            MetricsData = preprocessedMetricsData?.Skip(2).ToList();
        }
        public IActionResult ReadTestData([Required] bool fromFile, [Required] string webServiceId)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                if (webServiceId == null)
                {
                    return(BadRequest("The webServiceId is invalid or missing!"));
                }

                var result = _loadTestDataIOManager.ReadTestData(webServiceId, fromFile);
                return(Ok(result));
            }
            catch (Exception ex)
            {
                throw;
            }
        }