コード例 #1
0
        public async Task <IActionResult> Uninstall(ModuleUninstallModel model)
        {
            var command       = new ModuleUninstallCommand(model.Id, model.ConcurrencyToken);
            var commandResult = await _messageDispatcher.DispatchAsync(command);

            if (commandResult.IsSuccess)
            {
                return(RedirectToAction(nameof(Index)));
            }

            return(GetActionResult(commandResult, model));
        }
コード例 #2
0
 public void Handle(ModuleUninstallCommand command)
 {
     Entity.Uninstall();
 }