示例#1
0
        public async Task <Result <PagedModel <AdminUserDto> > > GetUserAsync([FromQuery] AdminUserQueryPaged command, CancellationToken cancellationToken = default)
        {
            var res = await bus.SendCommand(command, cancellationToken);

            return(RestFull.Success(data: res));
        }
示例#2
0
        public async Task <Result <PagedModel <AdminUserDto> > > GetPageAsync([FromQuery] AdminUserQueryPaged query, CancellationToken cancellationToken)
        {
            var res = await bus.SendCommand(query, cancellationToken);

            return(Success(SubCode.Success, res));
        }