/// <summary> /// On Notification Result /// </summary> /// <param name="context">Exception Context</param> /// <param name="next">Next Execution</param> public async Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next) { if (!notificationContext.HasReturn) { await next(); } else { await CustomReturn.PutResponse(context.HttpContext.Response, CustomReturn.NotificationReturn(context.HttpContext.Request, notificationContext)); } }
public IActionResult Error() { return(View(CustomReturn.NotificationReturn(Request, _notification))); }