@using LANCommander.SDK.Enums @inject KeyService KeyService @inject ModalService ModalService @inject IMessageService MessageService @inject ILogger Logger @if (_keys != null) { @if (context.AllocationMethod.HasValue) { @context.AllocationMethod.Value.GetDisplayName() } @switch (context.AllocationMethod) { case KeyAllocationMethod.MacAddress: @context.ClaimedByMacAddress break; case KeyAllocationMethod.UserAccount: @context.ClaimedByUser?.UserName break; } @if (context.ClaimedOn.HasValue) { } @if (!context.IsAllocated()) { Assign } @if (context.IsAllocated()) { Release } Remove