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)); }
public async Task <Result <PagedModel <AdminUserDto> > > GetPageAsync([FromQuery] AdminUserQueryPaged query, CancellationToken cancellationToken) { var res = await bus.SendCommand(query, cancellationToken); return(Success(SubCode.Success, res)); }