Пример #1
0
        public ActionResult <IEnumerable <AllergenSeverityViewModel> > GetAllegenSeverties()
        {
            //var data = allergenInputService.GetAllAllergenSeverity();
            var data = allergenInputService.GetAllAllergenSeverityXml();

            return(Ok(data));
        }
Пример #2
0
        public HttpResponseMessage Severities()
        {
            var data = allergenInputService.GetAllAllergenSeverityXml();
            var resp = new HttpResponseMessage(HttpStatusCode.OK);

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

            return(resp);
        }