public async Task <IActionResult> Add([FromBody] ResourceShowDto dto) { dto.SysResource.CreateUserId = UserIdentity.UserId; bool res = await _resourceService.AddAsync(dto); return(Ok(res)); }
public async Task <bool> AddAsync([FromBody] ResourceShowDto dto) { return(await _resourceService.AddAsync(dto)); }