Exemplo n.º 1
0
        public ActionResult <IEnumerable <AllergenTypeViewModel> > GetAllegenTypes()
        {
            //var data = allergenInputService.GetAllAllergenType();
            var data = allergenInputService.GetAllAllergenTypeXml();

            return(Ok(data));
        }
Exemplo n.º 2
0
        public HttpResponseMessage Types()
        {
            var data = allergenInputService.GetAllAllergenTypeXml();

            var resp = new HttpResponseMessage(HttpStatusCode.OK);

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

            return(resp);
        }