Table of Contents

Class TrinityController

Namespace
AbanoubNassem.Trinity.Controllers
Assembly
AbanoubNassem.Trinity.dll

Base controller for the Trinity application.

[Authorize]
[AutoValidateAntiforgeryToken]
public abstract class TrinityController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Inheritance
TrinityController
Implements
Derived
Inherited Members

Remarks

This controller provides common functionality for all controllers in the Trinity application, including authorization and antiforgery token validation.

Methods

UnAuthorised()

Returns an HTTP 401 Unauthorized response with an optional error message, suitable for use in an Inertia request.

protected IActionResult UnAuthorised()

Returns

IActionResult

The HTTP response to return.