Esempio n. 1
0
        public ActionResult <string> Get()
        {
            //var data = allergyHistoryDataService.GetAllAllergenHistory();

            var data = allergyHistoryDataService.GetAllAllergenHistoryXml();

            return(Ok(data));
        }
Esempio n. 2
0
        public HttpResponseMessage Get()
        {
            var fakeDataFolderPath = AppSettings.FakeDataFolderPath;
            var data = allergyHistoryDataService.GetAllAllergenHistoryXml(fakeDataFolderPath);

            var resp = new HttpResponseMessage(HttpStatusCode.OK);

            if (data != null)
            {
                resp.Content = new StringContent(data, System.Text.Encoding.UTF8, "text/plain");
            }

            return(resp);
        }