Beispiel #1
0
        private Int32 SaveRecord()
        {
            ContactGroupDetails clsDetails = new ContactGroupDetails();

            clsDetails.ContactGroupCode     = txtContactGroupCode.Text;
            clsDetails.ContactGroupName     = txtContactGroupName.Text;
            clsDetails.ContactGroupCategory = (ContactGroupCategory)Enum.Parse(typeof(ContactGroupCategory), cboContactGroupCategory.SelectedItem.Value);

            ContactGroups clsContactGroup = new ContactGroups();
            Int32         id = clsContactGroup.Insert(clsDetails);

            clsContactGroup.CommitAndDispose();

            return(id);
        }