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

            response = ut.getOwner("0");
            //      response = ut.saveProp();
            //response = ut.getUnit(0);

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


            response = ut.getOwner(id);
            //  Models.Unit unit = new Models.Unit();
            //    Models.Owner owner = new Models.Owner();
            //  owner = Newtonsoft.Json.JsonConvert.DeserializeObject<TestAPI.Models.Owner>(response);
            //   return new object[] { owner };
            return(new string[] { "Response", response });
        }