Exemplo n.º 1
0
        public virtual IHttpActionResult Disable(SysRoleDisableRequest request)
        {
            var entity = new SysRole
            {
                Id = request.Id,
            };
            var result = _sysRoleService.Disable(request.Id);

            if (result > 0)
            {
                return(Succeed("禁用成功"));
            }
            else
            {
                return(Fail("禁用失败"));
            }
        }