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());
        }
        public ActionResult Edit(int id)
        {
            MasterHotelType_model cat = db.MasterHotelTypes.Where(x => x.HotelTypeId == id).Select(x => new MasterHotelType_model()
            {
                HotelTypeID = x.HotelTypeId,
                Name        = x.Name,
                Description = x.Description
            }).SingleOrDefault();

            return(View(cat));
        }