public ActionResult Update([Bind(Exclude = "RoomCategory")] HotelViewModel hotelViewModel)
        {
            Hotel hotel = AutoMapper.Mapper.Map <HotelViewModel, Hotel>(hotelViewModel);

            hotelDetails.UpdateHotel(hotel);
            return(RedirectToAction("ManageHotel", "HotelDetails"));
        }
예제 #2
0
 public bool Put(int id, [FromBody] Hotel value)
 {
     return(mgr.UpdateHotel(value, id));
 }