public ActionResult Create() { var claimsIdentity = User.Identity as ClaimsIdentity; var EmailAddress = claimsIdentity?.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Email)?.Value; ViewBag.BeerID = new SelectList(_beerApp.GetAll(), "BeerID", "Name"); return(View(new BeerinoUserViewModel())); }
public ActionResult Index() { var beerModelView = Mapper.Map <IEnumerable <Beer>, IEnumerable <BeerViewModel> >(_beerApp.GetAll()); return(View(beerModelView)); }
public ActionResult Create() { ViewBag.BeerID = new SelectList(_beerApp.GetAll(), "BeerID", "Name"); return(View()); }