public string ConfirmAddTransferTransaction(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.AddTransfer(trans); return(response); }