예제 #1
0
        public ActionResult <IEnumerable <string> > Get()
        {
            TestAPI.Utils ut       = new TestAPI.Utils();
            string        response = "";

            response = ut.getUnit("0");

            return(new string[] { "Response", response });
        }
예제 #2
0
        public ActionResult <IEnumerable <object> > Get(string id)
        {
            TestAPI.Utils ut       = new TestAPI.Utils();
            string        response = "";


            response = ut.getUnit(id);
            Models.Unit unit = new Models.Unit();
            unit = Newtonsoft.Json.JsonConvert.DeserializeObject <TestAPI.Models.Unit>(response);
            return(new object[] { unit });
        }