namespace Fabula.Web.Controllers;

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;

[Authorize]
[AutoValidateAntiforgeryToken]

public class BaseController : Controller
{
    protected string GetControllerName()
    {
        string controllerName = ControllerContext.ActionDescriptor.ControllerName;

        return controllerName;
    }

    protected string GetActionName()
    {
        string actionName = ControllerContext.ActionDescriptor.ActionName;

        return actionName;
    }
}
