Example #1
0
        public void Save()
        {
            var payee = new Payee
            {
                Name = _view.Name,
                Note = _view.Notes
            };

            if (!_view.PayeeId.HasValue)
            {
                var insertedPayee = InsertPayee(payee);
                _view.PayeeId = insertedPayee.ID;
            }
            else
            {
                payee.ID = _view.PayeeId.GetValueOrDefault();
                UpdatePayee(payee);
            }
        }
Example #2
0
 private void UpdatePayee(Payee payee)
 {
     _payeeService.Update(payee);
 }
Example #3
0
 private Payee InsertPayee(Payee payee)
 {
     return _payeeService.Insert(payee);
 }