partial void DeletePartner(Partner instance);
 partial void InsertPartner(Partner instance);
 partial void UpdatePartner(Partner instance);
        public void InsertPartner(string imageURL)
        {
            try
            {
                int sequence = 0;

                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    var partner = from p in vdc.Partners.ToList()
                                  orderby p.Sequence descending
                                  select p;
                    if (partner.Count() > 0)
                    {
                        sequence = partner.First().Sequence + 1;
                    }
                    else
                    {
                        sequence = 1;
                    }
                }
                using (VenturadaDataContext vdc = new VenturadaDataContext())
                {
                    Partner receivedPM = new Partner();
                    receivedPM.ImageUrl = imageURL;
                    receivedPM.Sequence = sequence;

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

                throw ex;
            }
        }