@page "/food"
@using BlazorApp.Data;

@inject IFoodService _foodService;
@inject PaymentService _paymentService;

@inject SingletonService _singleton;
@inject ScopedService _scoped;
@inject TransientService _transient;

<h3>Food</h3>

<div>
    @foreach (var food in _foodService.GetFoods())
    {
        <div>@food.Name</div>
        <div>@food.Price</div>
    }
</div>

<div>
    <h1>Singleton</h1>
    <label>Guid: @_singleton.ID</label>
    <h1>Scoped</h1>
    <label>Guid: @_scoped.ID</label>
    <h1>Transient</h1>
    <label>Guid: @_transient.ID</label>
</div>

@code {

}