public ActionResult BindPupop(int code, string action)
        {
            var model = new RoleManagerCreateModel
            {
                Action          = action,
                ListFunctions   = _roleManageService.GetListFunctions(),
                ListPermissions = _roleManageService.GetListPermissions()
            };

            #region thông tin
            if (code > 0)
            {
                model.Role       = _roleManageService.GetRole(code);
                model.ListMarked = _roleManageService.GetListRoleMark(code);
            }
            else
            {
                model.Role       = new Security_Role();
                model.ListMarked = new List <Security_VwRoleService>();
            }

            #endregion
            #region return
            return(PartialView("Add", model));

            #endregion
        }
        public ActionResult ShowModal(int id, string action)
        {
            try
            {
                var model = new Models.RoleManagement.RoleManagementModel()
                {
                    Action = action
                };

                if (id > 0)
                {
                    var role = _roleManageService.GetRole(id);
                    if (role != null)
                    {
                        model.Id          = role.Id;
                        model.Name        = role.RoleName;
                        model.Description = role.Description;
                    }
                }
                return(PartialView("_roleDetail", model));
            }
            catch (Exception ex)
            {
                _log.Error("Show modal is error: " + ex);
                return(Json(new
                {
                    Status = "00",
                    Message = Resource.ServerError_Lang,
                    JsonRequestBehavior.AllowGet
                }));
            }
        }