public ActionResult NewLocation([FromBody] JObject postbody) { string LocationName = postbody["LocationName"].ToString(); string Action = postbody["Action"].ToString(); var NL = adal.AddNewLocation(LocationName, Action); return(Ok(NL)); }