// // GET: /Admin/Beer/ public ActionResult Index() { var vm = new BeerIndexViewModel() { Beers = _beerOrchestrator.GetBeers() .Select(b => new SelectListItem() { Text = b.Name, Value = b.Id }) .ToList(), Breweries = _breweryOrchestrator.GetBreweries() .Select(b => new SelectListItem() { Text = b.Name, Value = b.Id }) .ToList() }; return(View(vm)); }
public ActionResult Create() { var vm = new CreateKegViewModel(_beerOrchestrator.GetBeers()); return(View(vm)); }