Hi Ashutosh,
In Kentico, there are two different types of content ratings, both count towards the document's content rating:
-
Ratings without message
- increments the rating value and count directly in the Document table.
-
Ratings with message (uses Message Board functionality)
- adds a message with rating to [Board_Message] table, grouped together by a board representing the page stored in [Board_Board]
- also increments the rating value and count directly in the Document table.
If you're wanting to have full rating history, and be able to expose it via an API, you're probably best looking at using Message Board functionality. To do this, you can check the API documentation here or investigate how Kentico's Message Board webparts work, try checking:
- CMS\CMSModules\MessageBoards\Controls\MessageBoard.ascx.cs
- CMS\CMSModules\MessageBoards\Controls\Messages\MessageEdit.ascx.cs (btnOk_Click event)
Hope this helps.