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 = ""; response = ut.getUnit(id); Models.Unit unit = new Models.Unit(); unit = Newtonsoft.Json.JsonConvert.DeserializeObject <TestAPI.Models.Unit>(response); return(new object[] { unit }); }