public void AddImage(ImageDetails newImage)
        {
            using (ImageClassesDataContext context = new ImageClassesDataContext())
            {
                try
                {

                    ImageTable entity = new ImageTable();
                    entity.Name = newImage.Name;
                    entity.Image = newImage.Image;
                    entity.Size = newImage.Size;
                    context.ImageTables.InsertOnSubmit(entity);
                    context.SubmitChanges();
                }
                catch (Exception ex)
                {
                    throw ex;
                }


            }

        }
 partial void DeleteImageTable(ImageTable instance);
 partial void UpdateImageTable(ImageTable instance);
 partial void InsertImageTable(ImageTable instance);