public void SaveCompanyDetails(Company company, bool autoCommit = true) { if (company.Id == 0) { CompanyRepository.Insert(company); } else { CompanyRepository.Update(company); } if (autoCommit) { CompanyRepository.Commit(); } }