public void Post([FromBody] string value) { TestAPI.Utils ut = new TestAPI.Utils(); string response = ""; response = ut.saveProp(); }
public ActionResult <IEnumerable <string> > Get() { TestAPI.Utils ut = new TestAPI.Utils(); string response = ""; response = ut.getUnit("0"); return(new string[] { "Response", response }); }
public ActionResult <IEnumerable <object> > Get(string id) { TestAPI.Utils ut = new TestAPI.Utils(); string response = ""; Models.FMContact.GetFMContact.Rootobject fMContact = new Models.FMContact.GetFMContact.Rootobject(); response = ut.getFMCont(id); fMContact = Newtonsoft.Json.JsonConvert.DeserializeObject <Models.FMContact.GetFMContact.Rootobject>(response); return(new object[] { "Response", fMContact }); }
public ActionResult <string> Get() { TestAPI.Utils ut = new TestAPI.Utils(); string response = ""; // Models.FMContact.GetFMContact.Rootobject fMContact = new Models.FMContact.GetFMContact.Rootobject(); response = ut.getFMCont(""); // fMContact = Newtonsoft.Json.JsonConvert.DeserializeObject<Models.FMContact.GetFMContact.Rootobject>(response); return(response); }
public ActionResult <string> Get() { TestAPI.Utils ut = new TestAPI.Utils(); string response = ""; Models.Building.Rootobject prop = new Models.Building.Rootobject(); response = ut.getProp("0"); // prop = Newtonsoft.Json.JsonConvert.DeserializeObject<TestAPI.Models.Building.Rootobject>(response); return(response); }
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 }); }
public ActionResult <string> Get(string id) { TestAPI.Utils ut = new TestAPI.Utils(); string response = ""; response = ut.saveDoc(id); // Models.Unit.Rootobject unit = new Models.Unit.Rootobject(); // unit = Newtonsoft.Json.JsonConvert.DeserializeObject<TestAPI.Models.Unit.Rootobject>(response); return(response); }
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 }); }