public ActionResult Insert(tblHotelDetail E)// this action method is used to insert the data into hoteldetail table { if (ModelState.IsValid) { CountryList = Dbclass.getCountry(); ViewBag.L = CountryList; ViewBag.msg = Dbclass.Inserthotel(E); return(View("Insert")); } CountryList = Dbclass.getCountry(); ViewBag.L = CountryList; return(View()); }