Ejemplo n.º 1
0
        public JsonResult AuthorizeBlocking([FromQuery] string listBlockId, [FromQuery] bool isApprove, [FromQuery] int NIK)
        {
            int    intBlockId = 0;
            string ErrMsg     = "";
            bool   blnResult  = false;

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

            foreach (string s in selectedBlockId)
            {
                int.TryParse(s, out intBlockId);
                blnResult = cls.ReksaAuthorizeBlocking(intBlockId, NIK, isApprove, out ErrMsg);
                ErrMsg    = ErrMsg.Replace("ReksaAuthorizeBlocking - Core .Net SqlClient Data Provider\n", "");
            }

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