Get ID on insert (form submit)

Similar approach can be used in Blazor applications as well: