public async Task <IActionResult> GetConversacion(int userId, int destinatarioId) { if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value)) { return(Unauthorized()); } var conversacionRepo = await _repo.GetConversacion(userId, destinatarioId); var conversacion = _mapper.Map <IEnumerable <MessageToReturnDto> >(conversacionRepo); return(Ok(conversacion)); }