public ActionResult DeleteHotel(HotelViewModel hotelViewModel)
        {
            UserContext userContext = new UserContext();
            Hotel       hotel       = AutoMapper.Mapper.Map <HotelViewModel, Hotel>(hotelViewModel);
            Hotel       hotelView   = hotelDetails.GetHotelDetailsById(hotel.HotelId);

            hotelDetails.DeleteHotel(hotelView);
            return(RedirectToAction("ManageHotel", "HotelDetails"));
        }
Example #2
0
 public Hotel Delete(int id)
 {
     return(mgr.DeleteHotel(id));
 }
 public bool Delete(int id)
 {
     return(manageHotel.DeleteHotel(id));
 }
Example #4
0
 public bool Delete(int id)
 {
     return(_mngHotel.DeleteHotel(id));
 }