コード例 #1
0
        public ActionResult Delete(DeleteTweetCommand command)
        {
            var service = new Commanding.SimpleTwitterCommandServiceClient();
            service.Delete(command);

            return RedirectToAction("Index");
        }
コード例 #2
0
 public void Delete(DeleteTweetCommand command)
 {
     var service = NcqrsEnvironment.Get<ICommandService>();
     service.Execute(command);
 }