public async Task <IActionResult> OnPostDeactivateAsync([FromBody] PluginDto dto) { await pluginService.DeactivatePluginAsync(dto.Id); return(new JsonResult(true)); }
public async Task <IActionResult> OnPostActivateAsync([FromBody] PluginDto dto) { var id = await pluginService.ActivatePluginAsync(dto.Folder); return(new JsonResult(id)); }