private static Task OnViewModelSavingAsync(object sender, SavingEventArgs e) { if (!AuditingManager.IsAuditingEnabled) { return(TaskHelper.Completed); } AuditingManager.OnViewModelSaving((IViewModel)sender); return(TaskHelper.Completed); }
private static void OnViewModelSaving(object sender, SavingEventArgs e) { AuditingManager.OnViewModelSaving((IViewModel)sender); }