//Get one Banner info from the supplied bannerId
        public ImageSlider ViewPhoto1(int PhotoId)
        {
            crazyTattoosEntities data = new crazyTattoosEntities();

            ImageSlider bt = new ImageSlider();

            bt = data.ImageSliders.Single(c => c.PhotoId == PhotoId); // lamda expression
            return(bt);
        }
        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);
        }