Пример #1
0
        public JsonResult CancelTransaction([FromQuery] string listTranId, [FromQuery] int NIK, [FromQuery] string GUID)
        {
            bool   blnResult = false;
            string ErrMsg    = "";
            int    intTranId = 0;

            string[] selectedTranId;
            listTranId     = (listTranId + "***").Replace("|***", "");
            selectedTranId = listTranId.Split('|');

            foreach (string s in selectedTranId)
            {
                int.TryParse(s, out intTranId);
                blnResult = cls.ReksaCancelTransaction(intTranId, GUID, NIK, out ErrMsg);
                ErrMsg    = ErrMsg.Replace("ReksaCancelTransaction - Core .Net SqlClient Data Provider\n", "");
            }

            return(Json(new { blnResult, ErrMsg }));
        }