public ActionResult LogAlcohol() { LogAlcoholViewModel model = new LogAlcoholViewModel(); model.Beers = null; return(View(model)); }
public async Task <ActionResult> LogAlcohol(LogAlcoholViewModel model) { model.Beers = await BeerRetriever.Retrieve(model.BeerName); return(View(model)); }