private string GetLastedContractCode() { string result = ""; try { _systemConfigService = new SystemConfigService(); txtCode.Text = _systemConfigService.GetLastContractNumberAsString(); return(result); } catch (Exception) { throw; } finally { _systemConfigService = null; } }