public virtual IHttpActionResult Disable(SysMenuDisableRequest request) { var entity = new SysMenu { Id = request.Id, }; var result = _sysMenuService.Disable(request.Id); if (result > 0) { return(Succeed("禁用成功")); } else { return(Fail("禁用失败")); } }
public virtual IHttpActionResult Disable(SysMenuDisableRequest request) { var entity = new SysMenu { Id = request.Id, }; var result = _sysMenuService.Disable(request.Id); if (result > 0) { return(Succeed("禁用成功")); } else { return(Fail("禁用失败")); } }