Example #1
0
        public ISaveResult Save(WhingeEntity whinge)
        {
            var command = new SaveWhingeCommand(whinge);

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

            return(new SaveResult(command.CommandId));
        }
Example #2
0
        // POST api/whinge
        public void Post(WhingeEntity whinge)
        {
            var repository = new WhingeRepository();

            repository.Whinge(whinge);
        }
Example #3
0
        public void Whinge(WhingeEntity whinge)
        {
            var service = new WhingeService(ApplicationContext);

            service.Save(whinge);
        }