public PaginationResponse <ConversationResponse> GetConversationList(GetConversationListRequest request)
        {
            var conversationList = _conversationRepository.GetConversations(request.ApplicationId, request.CompanyId, request.SenderId, request.RecipientId, request.PageNumber, request.PageSize);

            return(new PaginationResponse <ConversationResponse>
            {
                Total = conversationList.Total,
                Items = conversationList.Items.ProjectTo <ConversationResponse>()
            });
        }
Ejemplo n.º 2
0
        public IActionResult Get(GetConversationListRequest request)
        {
            var serviceResponse = _conversationService.GetConversationList(request);

            return(ApiResponse(serviceResponse));
        }