private IEnumerable <IRecord> RunQuery()
        {
            var mapper = new WOSRecordToIRecordConverter();

            var result       = RunRawQuery();
            var mappedResult = mapper.ToIRecord(result);

            return(mappedResult);
        }
Example #2
0
        /// <summary>
        /// Gets something.
        /// </summary>
        /// <remarks> GET: api/Test </remarks>
        /// <returns> Something special for you. </returns>
        public IEnumerable <IRecord> Get()
        {
            var path = System.Web.Hosting.HostingEnvironment.MapPath("~/App_Data/results.xml");

            //var test = new Test();
            //test.Run(path);
            var converter = new WOSRecordToIRecordConverter();
            var res       = Extensions.Deserialize <searchResults>(path);
            var result    = converter.ToIRecord(res);

            return(result);
        }