예제 #1
0
 /// <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));
     }
 }
예제 #2
0
 public IActionResult Error()
 {
     return(View(CustomReturn.NotificationReturn(Request, _notification)));
 }