@page "/addChapter"
@using Blazor.Models

<h3>Add Chapter</h3>


<EditForm Model="@chapterModel" OnValidSubmit="@HandleValidSubmit">
    <DataAnnotationsValidator />
    <ValidationSummary />

    <p>
        <label for="name">
            Name:
            <InputText id="name" @bind-Value="chapterModel.Name" />
        </label>
    </p>
    

    <button type="submit">Submit</button>
</EditForm>