public ActionResult EditHotel(HotelViewModel hotelViewModel) { Hotel hotel = AutoMapper.Mapper.Map <HotelViewModel, Hotel>(hotelViewModel); Hotel hotelView = hotelDetails.GetHotelDetailsById(hotel.HotelId); return(View(hotelView)); }