public async Task <IActionResult> Create([Bind("ID,Name,Address,Phone")] Hotel hotel) { if (ModelState.IsValid) { await _hotels.AddHotel(hotel); return(RedirectToAction(nameof(Index))); } return(View(hotel)); }