17 lines
580 B
C#
17 lines
580 B
C#
using Buchhaltung;
|
|
using BuchhaltungBlazor.Services;
|
|
|
|
namespace BuchhaltungBlazor.Pages;
|
|
|
|
public partial class Bookings {
|
|
private IList<Booking> bookings = new List<Booking>();
|
|
private Booking? selectedBooking;
|
|
|
|
protected override async Task OnInitializedAsync() {
|
|
bookings = await GenericController.GetAllAsync<Booking>() ?? new List<Booking>();
|
|
selectedBooking = bookings.FirstOrDefault();
|
|
await base.OnInitializedAsync();
|
|
}
|
|
|
|
private void OnSelectedBookingChanged(Booking newSelectedBooking) => selectedBooking = newSelectedBooking;
|
|
} |