Exemple #1
0
 public CashBankMutation CreateObject(CashBankMutation cashBankMutation, ICashBankService _cashBankService)
 {
     cashBankMutation.Errors = new Dictionary <String, String>();
     if (_validator.ValidCreateObject(cashBankMutation, _cashBankService))
     {
         //cashBankMutation.SourceCashBankName = _cashBankService.GetObjectById(cashBankMutation.SourceCashBankId).Name;
         //cashBankMutation.TargetCashBankName = _cashBankService.GetObjectById(cashBankMutation.TargetCashBankId).Name;
         _repository.CreateObject(cashBankMutation);
     }
     return(cashBankMutation);
 }
Exemple #2
0
 public CashBankMutation CreateObject(CashBankMutation cashBankMutation, ICashBankService _cashBankService)
 {
     cashBankMutation.Errors = new Dictionary <String, String>();
     return(_validator.ValidCreateObject(cashBankMutation, _cashBankService) ? _repository.CreateObject(cashBankMutation) : cashBankMutation);
 }