public IActionResult Ejecuta() { var dt = new Class_DT(); var reader = new StreamReader(Request.Body); var body = reader.ReadToEnd(); body = dt.ReplaceFrom(body); var root = JArray.Parse(body); var cnx = _context.conexion_Configs.Find(1); List <Field> fields = null; fields = JsonConvert.DeserializeObject <List <Field> >(root[0].ToString()); var payments = new PaymentsService(cnx.Url, cnx.Usr, cnx.Pwd, cnx.CrypKey); payments.Config(7, 1, 1, 1, 1); var response = payments.Request(fields); return(Ok(response)); }