@page "/rollback"
@using Models
@using Services
@inject IRollbackService RollbackService

<PageTitle>Rollback</PageTitle>

<h1>Reset to defaults</h1>

<button @onclick="PerformRollback" class="btn btn-danger">Rolback Database</button>


@code {
    private Task PerformRollback() {
        RollbackService.ResetToDefaults();
        return Task.CompletedTask;
    }
}
