コード例 #1
0
 public static IMvcBuilder AddToastWithOptions(this IMvcBuilder builder)
 {
     builder.AddNToastNotifyToastr(new ToastrOptions()
     {
         ProgressBar       = true,
         PreventDuplicates = true,
         NewestOnTop       = true
     }, new NToastNotifyOption
     {
         DefaultSuccessTitle = "موفقیت",
         DefaultAlertTitle   = "هشدار",
         DefaultWarningTitle = "اخطار",
         DefaultErrorTitle   = "خطا"
     });
     return(builder);
 }