Beispiel #1
0
        public static void SaveRegisterMenuLog(Website website, Domain.Menu menu, string operatorAccount)
        {
            var log = new Log.Domain.OperationLog(
                OperationModule.权限,
                OperationType.Insert,
                operatorAccount,
                OperatorRole.Platform,
                menu.Id.ToString(),
                "添加菜单。" + menu.ToString()
                );

            LogService.SaveOperationLog(log);
        }
Beispiel #2
0
        public static void SaveUpdateMenuLog(Domain.Menu menu, string operatorAccount)
        {
            var log = new Log.Domain.OperationLog(
                OperationModule.权限,
                OperationType.Update,
                operatorAccount,
                OperatorRole.Platform,
                menu.Id.ToString(),
                "修改菜单。" + menu.ToString()
                );

            LogService.SaveOperationLog(log);
        }