public Favorite getFavorite(string Id)
 {
     try
     {
         return(_favRepo.GetFavorite(Id));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
 public IActionResult GetFavorite(int userId, int postId)
 {
     return(Ok(_favoritesRepository.GetFavorite(userId, postId)));
 }