public async Task <IActionResult> OnGetAsync()
        {
            AccommodationTypes = await AccommodationTypeLogic.GetAccommodationTypesAsync();

            Currencies = await CurrencyLogic.GetCurrenciesAsync();

            return(Page());
        }
        public async Task <IActionResult> OnGetAsync(int accommodationId)
        {
            if (accommodationId == 0)
            {
                return(BadRequest());
            }

            Accommodation = await accommodationLogic.GetAccommodationByIdAsync(accommodationId);

            if (Accommodation == null)
            {
                return(NotFound());
            }

            if (Accommodation.ApplicationUser.UserName != User.Identity.Name)
            {
                return(Unauthorized());
            }

            Currencies = await currencyLogic.GetCurrenciesAsync();

            return(Page());
        }