When you click on the like or dislike icons, the item reflects the status by changing its color, however, the count next to these are not been reflected.
In the models folder, create a new folder named "PostStatus", with a model "PostLikedDislikedStatus", with the following columns
PostId
TotalLikes
TotalDislkes
Modify the Like and Dislike endpoints to return the newly created model.
Modify the respective ClientServices methods to reflect the change in the retutnred model
Modify the caller logic with the respective changes, and use the Total properties to refresh the count
Note: You meay need to add two additional properties
When you click on the like or dislike icons, the item reflects the status by changing its color, however, the count next to these are not been reflected.
Note: You meay need to add two additional properties