public void Delete(int id)                //Upadate single records
        {
            tbl_Hotel_images Hotel_images = db.tbl_Hotel_images.Find(id);

            db.tbl_Hotel_images.Remove(Hotel_images);

            save();
        }
        public void Update_hotel_Images(HotelsCustomModel model)
        {
            tbl_Hotel_images Hotelimages = new tbl_Hotel_images();

            Hotelimages.ID = model.Hotels.ID;

            Hotelimages.ImagePath = model.Hotels.ImagePath;

            Hotel_ImagesDB_Obj.Upadate(Hotelimages);
        }
        public int Insert(tbl_Hotel_images obj)                //Insert single records
        {
            db.tbl_Hotel_images.Add(obj);

            save();

            int Id = obj.ID;

            return(Id);
        }
        // HotelsCustomModel METHODS
        public int Insert_hote_Images(HotelsCustomModel model)
        {
            tbl_Hotel_images Hotelimages = new tbl_Hotel_images();

            Hotelimages.Hotel_ID = model.Hotels.ID;

            Hotelimages.ImagePath = model.Hotels.ImagePath;

            int id = Hotel_ImagesDB_Obj.Insert(Hotelimages);

            return(id);
        }
        public void Upadate(tbl_Hotel_images obj)                //Upadate single records
        {
            db.Entry(obj).State = System.Data.Entity.EntityState.Modified;

            save();
        }
        public tbl_Hotel_images GetById(int id)                //get single records
        {
            tbl_Hotel_images Hotel_images = db.tbl_Hotel_images.Find(id);

            return(Hotel_images);
        }