public static void SaveUpdateResourceLog(Domain.Resource resource, string operatorAccount) { var log = new Log.Domain.OperationLog( OperationModule.权限, OperationType.Update, operatorAccount, OperatorRole.Platform, resource.Id.ToString(), "修改页面资源。" + resource.ToString() ); LogService.SaveOperationLog(log); }
public static void SaveRegisterResourceLog(Guid submenuId, Domain.Resource resource, string operatorAccount) { var log = new Log.Domain.OperationLog( OperationModule.权限, OperationType.Insert, operatorAccount, OperatorRole.Platform, resource.Id.ToString(), string.Format("添加页面资源。菜单:{0} {1}", submenuId, resource.ToString()) ); LogService.SaveOperationLog(log); }