partial void DeleteProductsMain(ProductsMain instance);
 partial void UpdateProductsMain(ProductsMain instance);
        public void UpdateProductsMainImage(int id, string imageUrl)
        {
            try
            {
                ProductsMain au = new ProductsMain();
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    au = vdc.ProductsMains.Single(a => a.ProductsMainId == id);
                    au.ImageURLString = imageUrl;

                    vdc.SubmitChanges();
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
 partial void InsertProductsMain(ProductsMain instance);
        public void UpdateProductsMain(ProductsMainModel aum)
        {
            try
            {
                ProductsMain au = new ProductsMain();
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    au = vdc.ProductsMains.Single(a => a.ProductsMainId == aum.ProductsMainId);
                    au.ProductsMainId = aum.ProductsMainId;
                    au.ProductMainParagraph = aum.ProductMainParagraph;
                    au.ProductSubParagraph = aum.ProductSubParagraph;
                    au.ProductMainParagraphTitle = aum.ProductMainParagraphTitle;
                    au.ProductSubParagraphTitle = aum.ProductSubParagraphTitle;
                    vdc.SubmitChanges();
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }