@page "/admin/subscriptions/" @using Moonlight.App.Services @using Moonlight.App.Database.Entities @using Moonlight.App.Repositories @using BlazorTable @inject SmartTranslateService SmartTranslateService @inject SubscriptionRepository SubscriptionRepository

Subscriptions

@code { private Subscription[] Subscriptions; private LazyLoader LazyLoader; private Task Load(LazyLoader arg) { Subscriptions = SubscriptionRepository .Get() .ToArray(); return Task.CompletedTask; } private async Task Delete(Subscription subscription) { SubscriptionRepository.Delete(subscription); await LazyLoader.Reload(); } }