Пример #1
0
 public void SubmitCustomerAccountForm(CustomerAccountEntity accountEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         accountEntity.Modify(keyValue);
         customerAccountRepository.Update(accountEntity);
     }
     else
     {
         accountEntity.Create();
         customerAccountRepository.Insert(accountEntity);
     }
 }