public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Availability")] HotelsChain hotelsChain)
        {
            if (id != hotelsChain.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(hotelsChain);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!HotelsChainExists(hotelsChain.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(hotelsChain));
        }
        public async Task <IActionResult> Create([Bind("Id,Name,Availability")] HotelsChain hotelsChain)
        {
            if (ModelState.IsValid)
            {
                _context.Add(hotelsChain);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(hotelsChain));
        }