mirror of
https://github.com/MAKS-IT-COM/maksit-results.git
synced 2026-11-14 21:36:10 +01:00
13 lines
322 B
C#
13 lines
322 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace MaksIT.Results.Mvc;
|
|
|
|
public class RedirectResult(string location) : IActionResult {
|
|
public string Location { get; } = location;
|
|
|
|
public Task ExecuteResultAsync(ActionContext context) {
|
|
context.HttpContext.Response.Redirect(Location);
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|