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);
        }
示例#3
0
 public IActionResult OnGet(int whiskeyId)
 {
     Whiskey = whiskeyData.GetById(whiskeyId);
     if (Whiskey == null)
     {
         return(RedirectToPage("./NotFound"));
     }
     return(Page());
 }
示例#4
0
 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);
 }