Find string and cut string its reach the particular string
Api Methods [HttpPost] [Route("Postmetods")] public string Getmethod([FromBody] dynamic data) { // dynamic to string conversion string swap = Convert.ToString(data); //check the particular present or not it return bool value bool ee = swap.Contains("200"); //body after it will remove before string string s = swap.Substring(swap.LastIndexOf("body")); //if present it will show execute Yes else No if (ee != false) { return "Yes"; ...