Ejemplo n.º 1
0
        public ActionResult Add( PostNewTweetCommand command )
        {
            var service = new SimpleTwitterCommandServiceClient();
            service.Excecute( command );

            return RedirectToAction( "Index" );
        }
        public ActionResult Add(PostNewTweetCommand command)
        {
            var service = new SimpleTwitterCommandServiceClient();

            service.Execute(command);

            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult Add(PostNewTweetCommand command)
        {
            var service = new Commanding.SimpleTwitterCommandServiceClient();

            service.Execute(command);

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 4
0
        public void Execute(PostNewTweetCommand command)
        {
            var service = NcqrsEnvironment.Get <ICommandService>();

            service.Execute(command);
        }