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)); }
public void Handle(ModuleUninstallCommand command) { Entity.Uninstall(); }