public IActionResult AddToSeenIds([FromQuery] string conversationId) { var identity = (ClaimsIdentity)User.Identity; var userId = identity.FindFirst("user_id").Value; var result = _chatService.AddToSeenIds(conversationId, userId); if (!result) { return(BadRequest()); } return(Ok(result)); }