public void TransferToMQ(TestTransfer testRecModel)
        {
            var createTransferCommand = new CreateTransferCommand(
                testRecModel.FirstName,
                testRecModel.SurName
                );

            _bus.SendCommand(createTransferCommand);
        }
Exemple #2
0
 public void Add(TestTransfer transfer)
 {
     _ctx.TestTransfer.Add(transfer);
     _ctx.SaveChanges();
 }