using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using WmsLite.Api.Infrastructure.Auth; namespace WmsLite.Api.Controllers; [Authorize] [ApiController] public abstract class WmsLiteControllerBase : ControllerBase { protected ICurrentUserContext CurrentUser { get; } protected WmsLiteControllerBase(ICurrentUserContext currentUser) { CurrentUser = currentUser; } protected string TenantId => CurrentUser.TenantId; protected string OwnerCode => CurrentUser.OwnerCode; protected string UserId => CurrentUser.UserId; }