public async Task <IActionResult> Create([Bind("ID,Name,StreetAddress,City,State,Phone")] Hotels hotels) { if (ModelState.IsValid) { await _hotels.CreateHotels(hotels); return(View(hotels)); } return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> Create([Bind("ID,Name,StreetAddress,City,State,Phone")] Hotels hotels) { if (ModelState.IsValid) { await _hotels.CreateHotels(hotels); return(View(hotels)); } return(RedirectToAction(nameof(Index))); }