示例#1
0
        public virtual IHttpActionResult Update(SysMenuUpdateRequest request)
        {
            var entity = new SysMenu
            {
                Id = request.Id,
            };
            var result = _sysMenuService.Update(entity);

            if (result > 0)
            {
                return(Succeed(new SysMenuUpdateResponse
                {
                    Id = entity.Id
                }, "新增成功"));
            }
            else
            {
                return(Fail("新增失败"));
            }
        }