public IActionResult Delete(int id)
        {
            IActionResult response   = null;
            string        mess       = string.Empty;
            UserModels    userModels = new UserModels();

            UserPageAction userPageAction = userModels.GetUserPageActionbyId(id);

            string[] listActionNameCanNotDelete = new string[] { CommonGlobal.View, CommonGlobal.Add, CommonGlobal.Delete, CommonGlobal.Edit };
            if (userPageAction != null && !listActionNameCanNotDelete.Contains(userPageAction.ActionName))
            {
                //// delete UserPageAction
                bool rt = userModels.DeleteUserPageAction(userPageAction.Id);
                if (rt)
                {
                    response = Json(new { code = Constant.Success, message = Constant.MessageDeleteCompleted });
                }
                else
                {
                    response = Json(new { code = Constant.Fail, message = Constant.MessageDeleteUncompleted });
                }
            }
            else
            {
                response = Json(new { code = Constant.NotExist, message = Constant.MessageNotExist });
            }

            return(response);
        }