internal async Task <Result> AddBeer(int id) { UnTapped unTapped = new UnTapped(); UnTappedBeerInfo.Root info = await unTapped.GetBeerInfo(id); dal.AddUnTappedBeer(info); return(new Result()); }
internal async Task <string> AddBeers(string query) { TasterDal dal = new TasterDal(); UnTapped unTapped = new UnTapped(); UnTappedBeerSearch.Root result = await unTapped.SearchUnTapped(query); foreach (var res in result.response.beers.items) { UnTappedBeerInfo.Root info = unTapped.GetBeerInfo(res.beer.bid).Result; dal.AddUnTappedBeer(info); } return("Vei"); }