示例#1
0
        public async Task <ActionResult <BoolResult> > Delete()
        {
            if (!await _authManager.HasAppPermissionsAsync(Types.AppPermissions.SettingsLogsError))
            {
                return(Unauthorized());
            }

            await _errorLogRepository.DeleteAllAsync();

            await _authManager.AddAdminLogAsync("清空错误日志");

            return(new BoolResult
            {
                Value = true
            });
        }