partial void DeleteProductsList(ProductsList instance);
 partial void UpdateProductsList(ProductsList instance);
        public void UpdateProductList(ProductsListModel aum)
        {
            try
            {
                ProductsList au = new ProductsList();
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    au = vdc.ProductsLists.Single(a => a.ProductId == aum.ProductsId);
                    au.ProductId = aum.ProductsId;
                    au.MainDescription = aum.MainDescription;
                    au.DetailsDescription = aum.DetailsDescription;
                    vdc.SubmitChanges();
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
 partial void InsertProductsList(ProductsList instance);
        public void InsertProductList(ProductsListModel plm)
        {
            try
            {
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    ProductsList receivedPM = new ProductsList();
                    receivedPM.MainDescription = plm.MainDescription;
                    receivedPM.DetailsDescription = plm.DetailsDescription;

                    vdc.ProductsLists.InsertOnSubmit(receivedPM);
                    vdc.SubmitChanges();
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }