14 lines
402 B
C#
14 lines
402 B
C#
using Knoks.Api.Entities;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using static Knoks.Api.Authentication.IdentityConsts;
|
|
|
|
namespace Knoks.Api.Controllers.Base
|
|
{
|
|
[Authorize(ApiOperatorPolicy)]
|
|
public abstract class OperatorController : ApiBaseController
|
|
{
|
|
protected ApiConsumer ApiConsumer => ContextApiConsumer;
|
|
protected int OperatorId => ContextOperatorId.Value;
|
|
}
|
|
}
|