示例#1
0
        public async Task <IActionResult> Edit([FromBody] ResourceShowDto dto)
        {
            dto.SysResource.CreateUserId = UserIdentity.UserId;
            bool res = await _resourceService.UpdateAsync(dto);

            return(Ok(res));
        }
 public async Task <bool> UpdateAsync([FromBody] ResourceShowDto dto)
 {
     return(await _resourceService.UpdateAsync(dto));
 }
 public async Task <IResponseEntity> Update(ResourceEditRequest req)
 {
     return(await _sysResourceService.UpdateAsync(req));
 }