Example #1
0
 public async Task <MessageModel[]> GetMessagesAsync(int chatId, [FromQuery] PagingFilterModel filter)
 {
     return(await _chatService.GetMessagesAsync(_currentUserInfoProvider.Id, chatId, filter.Limit, filter.Offset));
 }
Example #2
0
 public async Task <ChatPreviewModel[]> GetChatListAsync([FromQuery] PagingFilterModel filter)
 {
     return(await _chatService.GetChatListAsync(_currentUserInfoProvider.Id, filter.Limit, filter.Offset));
 }