public async Task <IActionResult> GetSentMessages(int senderId, int receiverId)
        {
            var messages = await _repository.GetMessages(senderId, receiverId);

            var result = _mapper.Map <IEnumerable <MessageForListDTO> >(messages);

            return(Ok(result));
        }