79584328

Date: 2025-04-21 09:20:24
Score: 1
Natty:
Report link

You can add a parameter in your model class as isFavourite of boolean type and set the default value to false. Then when any one clicks on the like button change the value of isFavourite, and save it into database. That will do what you want.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jayanta Sarkar