private void UpdateCompany() { CompanyVO item = new CompanyVO { Company_ID = code, Company_Name = txtCompanyName.Text, Company_Number = maskedCompanyNumber.Text, Company_Fax = maskedCompanyFaxNumber.Text, CodeTable_CodeID = cboCompanyDivision.SelectedValue.ToString(), Company_Owner = txtCompanyOwner.Text, Company_Address = addrCompany.Address1 + " " + addrCompany.Address2, Company_AddrNumber = addrCompany.Zipcode }; if (item.Company_Fax.Replace("-", "").Trim().Length < 10) { item.Company_Fax = null; } try { StandardService service = new StandardService(); service.UpdateCompany(item); } catch (Exception err) { Log.WriteError(err.Message, err); } }