Example #1
0
        public string ConfirmAddOutTransaction(TransactionsViewModel vm)
        {
            TransactionDomainModel ts_dm = new TransactionDomainModel();
            var    mapper_accs           = new MapperConfiguration(cfg => cfg.CreateMap <TransactionsViewModel, TransactionDomainModel>()).CreateMapper();
            var    trans    = mapper_accs.Map <TransactionsViewModel, TransactionDomainModel>(vm);
            string response = ts.AddOut(trans);

            return(response);
        }