Пример #1
0
        public JsonResult AuthorizeSwitching_BS([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(listTranId, out intTranId);
            blnResult = cls.ReksaAuthorizeSwitching_BS(intTranId, NIK, isApprove, out ErrMsg);
            ErrMsg    = ErrMsg.Replace("ReksaAuthorizeSwitching_BS - Core .Net SqlClient Data Provider\n", "");
            //}

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