public void RemoveDuplicateTest()
        {
            ImageDal dal = new ImageDal();

            ImageDetails idetails = new ImageDetails();
            idetails.Name = "Lighthouse.jpg";
            idetails.Image = new byte[] { };
            idetails.Size = 100;

            dal.AddImage(idetails);
            dal.AddImage(idetails);

            dal.RemoveDuplicates();

            List<ImageDetails> result = dal.GetAllImages().FindAll(x => x.Name == "Lighthouse.jpg");

            Assert.AreEqual(1, result.Count);


        }
        protected void RemoveDuplicates_Click(object sender, EventArgs e)
        {
            try
            {
                ImageDal dal = new ImageDal();

                ListView1.DataSource = dal.RemoveDuplicates();
                ListView1.DataBind();
            }
            catch (Exception ex)
            {
                ImageException exception = new ImageException(ex.Message);

            }
        }