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