Esempio n. 1
0
        public ISaveResult Save(WhingeEntity whinge)
        {
            var command = new SaveWhingeCommand(whinge);

            Context.CommandQueue.EnqueueCommand<SaveWhingeCommand, WhingeEntity>(command);

            return new SaveResult(command.CommandId);
        }
Esempio n. 2
0
        public ISaveResult Save(WhingeEntity whinge)
        {
            var command = new SaveWhingeCommand(whinge);

            Context.CommandQueue.EnqueueCommand <SaveWhingeCommand, WhingeEntity>(command);

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