So I'm new to web programming, mostly used to C#, but now I'm stuck tring to do an insert to a DB over a week.....
It is pretty simple, I have a form in Razor, when the user finishes he clicks a button that should insert it to the DB, but I'm not being able to make this insert.
I was able to use JavaScript to create the insert line, but I can't make it go to the DB.
Can anyone please give me an example of how I can make this Javascript line go to the DB ?
Thank you very much!
What I have tried:
Copied all examples I could find... very few, most stuff is in the old MVC format and not Razor...