Skip to content

Commit

Permalink
model validation
Browse files Browse the repository at this point in the history
  • Loading branch information
CathLass committed Dec 18, 2024
1 parent d538c3b commit 5e7fe83
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public async Task OnGetAsync()

public async Task<IActionResult> OnPostAsync()
{
if (!ModelState.IsValid)
{
return this.PageWithErrors();
}
await JourneyInstance!.UpdateStateAsync(state =>
{
state.InductionStatus = InductionStatus;
Expand Down

0 comments on commit 5e7fe83

Please sign in to comment.