コード例 #1
0
        public ISaveResult Save(WhingerEntity whinger)
        {
            var command = new EnsureWhingerCommand(whinger);

            Context.CommandQueue.EnqueueCommand<EnsureWhingerCommand, WhingerEntity>(command);

            return new SaveResult(command.CommandId);
        }
コード例 #2
0
ファイル: WhingerService.cs プロジェクト: rmoorman/WhingePool
        public ISaveResult Save(WhingerEntity whinger)
        {
            var command = new EnsureWhingerCommand(whinger);

            Context.CommandQueue.EnqueueCommand <EnsureWhingerCommand, WhingerEntity>(command);

            return(new SaveResult(command.CommandId));
        }