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()); }
public ActionResult Add(PostNewTweetCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.Execute(command); return(RedirectToAction("Index")); }
public void Execute(PostNewTweetCommand command) { var service = NcqrsEnvironment.Get <ICommandService>(); service.Execute(command); }