Ejemplo n.º 1
0
        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)));
        }