public JsonResult AuthorizeTranReversal([FromQuery] string listTranId, [FromQuery] bool isApprove, [FromQuery] int NIK) { int intTranId = 0; string ErrMsg = ""; bool blnResult = false; string[] selectedTranId; listTranId = (listTranId + "***").Replace("|***", ""); selectedTranId = listTranId.Split('|'); foreach (string s in selectedTranId) { int.TryParse(s, out intTranId); blnResult = cls.ReksaAuthorizeTranReversal(intTranId, NIK, isApprove, out ErrMsg); ErrMsg = ErrMsg.Replace("ReksaAuthorizeTranReversal - Core .Net SqlClient Data Provider\n", ""); } return(Json(new { blnResult, ErrMsg })); }