public ActionResult Updatehotel(ServiceReference1.HotelDetails Uphotel) { //ViewBag.msg = HS.up(Uphotel); ViewBag.hotelid = hid; ViewBag.ms = HS.Upadtehotel(Uphotel); ModelState.Clear(); return(View()); }
public ActionResult Index(ServiceReference1.HotelDetails ADhotel) { ViewBag.countries = countries; Response.Cookies.Add(new HttpCookie("HotelId", ADhotel.HotelId)); ViewBag.msg = HS.Addhotel(ADhotel); ModelState.Clear(); return(View()); //return RedirectToAction("Indexroom", "Hotel"); }
public ActionResult DeleteHotel(ServiceReference1.HotelDetails Deh) { ViewBag.msg = HS.Removehotel(Deh.HotelId); return(View()); }