public async Task <IActionResult> Index() { // TODO: Get user information int totalNumberOfItems = await _chatMessageService.Count(x => !x.Deleted); PageInformation pageInformation = new PageInformation(0, totalNumberOfItems, WebConstants.MAX_NUMBER_OF_CHAT_MESSAGES_PER_PAGE); TechnicalSupportViewModel technicalSupportViewModel = new TechnicalSupportViewModel(pageInformation) { ChatMessages = _mapper.Map <List <ChatMessageDTO>, List <ChatMessageViewModel> >(await _chatMessageService.GetWithDetails(0, WebConstants.MAX_NUMBER_OF_CHAT_MESSAGES_PER_PAGE)) }; return(View(technicalSupportViewModel)); }