Esempio n. 1
0
        public ActionResult Insert()//this action method displays the view of insert action method
        {
            CountryList = Dbclass.getCountry();

            ViewBag.L = CountryList;

            tblHotelDetail E = new tblHotelDetail();

            return(View(E));
        }
Esempio n. 2
0
        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());
        }