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")); }
public Hotel Delete(int id) { return(mgr.DeleteHotel(id)); }
public bool Delete(int id) { return(manageHotel.DeleteHotel(id)); }
public bool Delete(int id) { return(_mngHotel.DeleteHotel(id)); }