@page "/spills" @using MongoDB.Driver @using Overflow.SouthernWater @rendermode RenderMode.InteractiveServer Southern Water Spills

Spills

This shows the data that you can see on the Southern Water Beachbuoy system

@if (job is not null) { Last updated at @job.EndTime } @code { private SouthernWaterApiJob? job; [Inject] private IMongoDatabase database { get; set; } // private bool showIds; protected override async Task OnInitializedAsync() { job = database.GetCollection(Static.CollectionName) .AsQueryable() .OrderByDescending(j => j.EndTime) .FirstOrDefault(); } }