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