whats the best way to do front end scripting in asp.net mvc? [closed]

What i want to do is have a list of ingredients with abutton next to each one which will add them to a meal. after i add them to a meal i then want to submit a form which will add the meal to the database

But that requires passing a list to JavaScript then passing it back to csharp to add this to the database server side.

is there an easier way?

i’ve looked at blazor but can i do MVC using Blazor?

Here’s what i want to do any way any help would be appreciated

Thank you enter image description here