From e00a0cab4d28483c5f5ff88e4eabf3cc2ebd6898 Mon Sep 17 00:00:00 2001 From: Travis Date: Mon, 12 Apr 2021 09:46:09 -0600 Subject: [PATCH] updated to use nameof --- ContosoUniversity/Pages/Departments/Delete.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ContosoUniversity/Pages/Departments/Delete.cshtml.cs b/ContosoUniversity/Pages/Departments/Delete.cshtml.cs index 97772a0..40f5d92 100644 --- a/ContosoUniversity/Pages/Departments/Delete.cshtml.cs +++ b/ContosoUniversity/Pages/Departments/Delete.cshtml.cs @@ -30,7 +30,7 @@ public async Task OnPostAsync() { await _mediator.Send(Data); - return this.RedirectToPageJson("Index"); + return this.RedirectToPageJson(nameof(Index)); } public record Query : IRequest @@ -93,4 +93,4 @@ public async Task Handle(Command message, CancellationToken token) } } } -} \ No newline at end of file +}