示例#1
0
        public async Task <IActionResult> OnPostDeactivateAsync([FromBody] PluginDto dto)
        {
            await pluginService.DeactivatePluginAsync(dto.Id);

            return(new JsonResult(true));
        }
示例#2
0
        public async Task <IActionResult> OnPostActivateAsync([FromBody] PluginDto dto)
        {
            var id = await pluginService.ActivatePluginAsync(dto.Folder);

            return(new JsonResult(id));
        }