Exemple #1
0
 public async Task <IActionResult> Create([Bind("HotelID,RoomNumber,RoomID,Rate,PetFriendly")] HotelRoom hotelRoom)
 {
     if (ModelState.IsValid)
     {
         await _hotels.AddRoomToHotel(hotelRoom);
     }
     return(RedirectToAction("Index", "Hotels"));
 }