コード例 #1
0
ファイル: RoleController.cs プロジェクト: Coding-Yu/SHS.CMS
        public async Task <JsonResult> Add(AddRoleDto model)
        {
            var result = await _roleAppService.AddAsync(model);

            OutputModel outputModel = new OutputModel();

            outputModel.Data = result;
            return(new JsonResult(outputModel));
        }
コード例 #2
0
 ///<inheritdoc/>
 protected override async Task <RoleDto> AddAsync(RoleDto dto, CancellationToken cancellationToken = default)
 => await _roleAppService.AddAsync(dto, cancellationToken);