public List <PathResponse> PostPathContent([FromBody] PathRequest pathRequest)
 {
     //try
     //{
     _logger.LogTrace("PostPathContent");
     return(FolderServices.ScanFolderService(pathRequest.PathString, pathRequest.ShowFolder));
     //}
     //catch (Exception ex)
     //{
     ////NLog: catch setup errors
     //_logger.LogError(ex, "Stopped program because of exception");
     //throw;
     //}
 }
        public List <PathResponse> GetPathContent([FromQuery] PathRequest pathRequest)
        {
            //try
            //{
            _logger.LogTrace("GetPathContent");
            ////PathRequest pathIntro =  new PathRequest(path, folder);
            ////var outList = new List<PathResponse>();

            ////outList = pathIntro.ScanFolder();
            return(FolderServices.ScanFolderService(pathRequest.PathString, pathRequest.ShowFolder));

            //}
            //catch (Exception ex)
            //{
            ////NLog: catch setup errors
            //_logger.LogError(ex, "Stopped program because of exception");
            //throw;
            //}
        }