public IActionResult OnGet(int WhiskeyId) { Whiskey = whiskeyData.GetById(WhiskeyId); ReservationOrders = whiskeyData.GetOrders(); AreaName = Whiskey.Area.Name; Order = new ReservationOrder(); return(Page()); }
public void OnGet(int WhiskeyId) { //ImagePath = "Img_1.png"; Whiskey = whiskeyData.GetById(WhiskeyId); }
public IActionResult OnGet(int whiskeyId) { Whiskey = whiskeyData.GetById(whiskeyId); if (Whiskey == null) { return(RedirectToPage("./NotFound")); } return(Page()); }
public IActionResult OnGet(int?whiskeyId) { WhiskeyTypes = htmlHelper.GetEnumSelectList <WhiskeyType>(); WhiskeyBrands = htmlHelper.GetEnumSelectList <WhiskeyBrand>(); WhiskeyArea = htmlHelper.GetEnumSelectList <WhiskeyArea>(); if (whiskeyId.HasValue) { Whiskey = whiskeyData.GetById(whiskeyId.Value); } else { Whiskey = new Whiskey(); } if (Whiskey == null) { return(RedirectToPage("./NotFound")); } return(Page()); }
public void OnGet(int WhiskeyId) { Whiskey = whiskeyData.GetById(WhiskeyId); Locations = whiskeyData.GetLocations(); searcharea = Whiskey.Area.Id; }
public void OnGet(int WhiskeyId) { Whiskey = whiskeyData.GetById(WhiskeyId); }