public ActionResult Delete(DeleteTweetCommand command) { var service = new Commanding.SimpleTwitterCommandServiceClient(); service.Delete(command); return RedirectToAction("Index"); }
public void Delete(DeleteTweetCommand command) { var service = NcqrsEnvironment.Get<ICommandService>(); service.Execute(command); }