public int AddPhoto(HomeImageInfoData Bidata)
        {
            crazyTattoosEntities apData = new crazyTattoosEntities();
            ImageSlider          data   = new ImageSlider();

            data.PhotoName = Bidata.BannerName;
            data.ExtName   = Bidata.BannerName.Substring(Bidata.BannerName.LastIndexOf('.'));
            data.PhotoSize = Bidata.BannerSize;
            data.PhotoType = Bidata.BannerType;

            apData.ImageSliders.Add(data);
            int ans = apData.SaveChanges();

            return(ans);
        }
        //Update Category info
        public int UpdateCategory(CategoryInfoData data)
        {
            crazyTattoosEntities nidata = new crazyTattoosEntities();
            categoryInfo         ni     = new categoryInfo();

            var nsd = from p in nidata.categoryInfoes where p.CategoryId == data.CategoryId select p;

            foreach (categoryInfo nifo in nsd)
            {
                nifo.CategoryId   = data.CategoryId;
                nifo.CategoryName = data.CategoryName;
            }
            int ans = nidata.SaveChanges();

            return(ans);
        }
        //Update testimonial info
        public int UpdateTestimonial(TestimonialInfoData data)
        {
            crazyTattoosEntities nidata = new crazyTattoosEntities();
            Testimonial          ni     = new Testimonial();

            var nsd = from p in nidata.Testimonials where p.TestimonialId == data.TestimonialId select p;

            foreach (Testimonial nifo in nsd)
            {
                nifo.TestimonialId = data.TestimonialId;
                nifo.CustomerName  = data.CustomerName;
                nifo.Testimonial1  = data.Testimonial;
            }
            int ans = nidata.SaveChanges();

            return(ans);
        }