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