コード例 #1
0
        public ActionResult BranchFreezeProvide(Guid id)
        {
            if (!base.HasPermission("branch", PermissionOperate.freeze))
            {
                return(JsonMessage(false, "你没有冻结周边网点的权限"));
            }

            if (_branchService.FreezeBranch(id))
            {
                Branch branch = _branchService.GetById(id);
                base.AddLog(string.Format("冻结周边网点[{0}]成功", branch.Name), AdminLoggerModuleEnum.Branch);
            }

            return(JsonMessage(true, "冻结成功"));
        }