You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
"IsLikedByCurrentUser"
"IsLikedByCurrentUser"
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: