示例#1
0
        public async Task <ActionResult <ListOf <EventHistoryData> > > ShowLogs(string username, [Range(1, 50)] int?limit = 10, [Range(1, int.MaxValue)] int?offset = 1, string search = null)
        {
            var data    = new PagingViewModel(limit ?? 10, offset ?? 0, search);
            var clients = await _userManageAppService.GetEvents(username, data);

            return(ResponseGet(clients));
        }
 public async Task <ActionResult <ListOf <EventHistoryData> > > GetLogs([Range(1, 50)] int?limit = 10, [Range(1, int.MaxValue)] int?offset = 1, string search = null)
 {
     return(ResponseGet(await _userAppService.GetEvents(_systemUser.Username, new PagingViewModel(limit ?? 10, offset ?? 0, search))));
 }