public OrganizationUpdatedEventArgs(OrganizationList organization)
 {
     this.organization = organization;
 }
 partial void DeleteOrganizationList(OrganizationList instance);
 partial void InsertOrganizationList(OrganizationList instance);
 partial void UpdateOrganizationList(OrganizationList instance);
        public void UpdateOrInsertOrganization(OrganizationList organization)
        {
            var org = Organizations.Where(o => o.OrganizationID == organization.OrganizationID).SingleOrDefault();

            if (org == null)
            {
                org = new Organization { OrganizationID = organization.OrganizationID };
                org.Address = organization.Address;
                org.Description = organization.Description;
                org.Discount = organization.Discount;
                org.Email = organization.Email;
                org.LegalAddress = organization.LegalAddress;
                org.Name = organization.Name;
                org.Phone = organization.Phone;
                org.PostAddress = organization.PostAddress;
                org.ScopeOfActivity = organization.ScopeOfActivity;
                org.ShortName = organization.ShortName;
                Organizations.InsertOnSubmit(org);
            }
            SubmitChanges();
        }