public void SubmitCustomerAccountForm(CustomerAccountEntity accountEntity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { accountEntity.Modify(keyValue); customerAccountRepository.Update(accountEntity); } else { accountEntity.Create(); customerAccountRepository.Insert(accountEntity); } }