示例#1
0
 public async Task <List <RedditResponse> > Get(string tag)
 {
     return(await RedditHelpers.FetchFavouritesAsync(_favRepository, tag));
 }
示例#2
0
 public async Task <FavoriteResponse> Post(string tag, string redditId)
 {
     return(await RedditHelpers.SaveFavouriteAsync(_favRepository, tag, redditId));
 }
示例#3
0
 public async Task <FavoriteResponse> Post([FromBody] Favorite favorite)
 {
     return(await RedditHelpers.SaveFavouriteAsync(_favRepository, favorite));
 }
示例#4
0
 public async Task <List <RedditResponse> > Get()
 {
     return(await RedditHelpers.FetchRedditDataAsync());
 }