public virtual IActionResult ReloadList() { if (!_permissionService.Authorize(StandardPermissionProvider.ManagePlugins)) { return(AccessDeniedView()); } _pluginService.UninstallPlugins(); _pluginService.DeletePlugins(); return(View("RestartApplication", Url.Action("List", "Plugin"))); }
public virtual IActionResult ReloadList() { if (!_permissionService.Authorize(StandardPermissionProvider.ManagePlugins)) { return(AccessDeniedView()); } _pluginService.UninstallPlugins(); _pluginService.DeletePlugins(); //restart application _webHelper.RestartAppDomain(); return(RedirectToAction("List")); }