public void Handle(RecordEncumbranceReplyMessage message) { var reply = new SubmitRequestReplyMessage { RequestId = Data.RequestId, Approved = true, PurchaseOrderNumber = message.PurchaseOrderNumber }; ReplyToOriginator(reply); MarkAsComplete(); }
public void Handle(RecordEncumbranceCommand message) { var purchaseOrderNumber = GetNextPurchaseOrderNumber(); var item = new ItemViewModel { PurchaseOrderNumber = purchaseOrderNumber, Amount = message.Cost, Description = message.Description }; var reply = new RecordEncumbranceReplyMessage { PurchaseOrderNumber = purchaseOrderNumber }; Context.MarshalToUiThread(() => Context.Items.Add(item)); Bus.Reply(reply); }