public ActionResult Delete(Int16 id)
        {
            MasterHotelType cat = db.MasterHotelTypes.Where(x => x.HotelTypeId == id).Single <MasterHotelType>();

            db.MasterHotelTypes.DeleteOnSubmit(cat);
            db.SubmitChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(MasterHotelType_model cat)
        {
            MasterHotelType tblcat = db.MasterHotelTypes.Where(x => x.HotelTypeId == cat.HotelTypeID).Single <MasterHotelType>();

            tblcat.HotelTypeId = cat.HotelTypeID;
            tblcat.Description = cat.Description;
            tblcat.Name        = cat.Name;
            db.SubmitChanges();
            return(View());
        }
        public ActionResult HotelType(MasterHotelType_model cat)
        {
            MasterHotelType tblcat = new MasterHotelType();

            tblcat.Name        = cat.Name;
            tblcat.Description = cat.Description;
            db.MasterHotelTypes.InsertOnSubmit(tblcat);
            db.SubmitChanges();
            return(View());
        }