public IEnumerable <Post> Get([FromRoute] int postId)
 {
     return(favoriteDAO.GetFavoritesByUserId(CurrentUser.Id));
 }
예제 #2
0
 public ActionResult GetFavorites()
 {
     return(Ok(favoriteDAO.GetFavoritesByUserId(CurrentUser.Id)));
 }