Example #1
0
        public async Task <IActionResult> UpdateIntent([FromBody] UpdateIntentViewModel model)
        {
            await _luisService.RenameIntentAsync(model.Id, model.Intent);

            if (model.UpdatePermission)
            {
                await _departmentService.UpdatePowerAsync(model.Intent, model.Permissions);
            }
            return(Ok());
        }