示例#1
0
        private static Task OnViewModelSavingAsync(object sender, SavingEventArgs e)
        {
            if (!AuditingManager.IsAuditingEnabled)
            {
                return(TaskHelper.Completed);
            }

            AuditingManager.OnViewModelSaving((IViewModel)sender);

            return(TaskHelper.Completed);
        }
示例#2
0
 private static void OnViewModelSaving(object sender, SavingEventArgs e)
 {
     AuditingManager.OnViewModelSaving((IViewModel)sender);
 }