public JavaScriptAlertResult(IActionResult result, JavaScriptAlert alert) { if (result == null) { throw new ArgumentNullException(nameof(result)); } if (alert == null) { throw new ArgumentNullException(nameof(alert)); } _result = result; _alert = alert; }
public static IActionResult AddJavaScriptAlert(this IActionResult result, JavaScriptAlert alert) => new JavaScriptAlertResult(result, alert);