✅ Kinda new to MVC/C#/Razor - Need some help passing data from Model -> Controller
As the title states, I'm kinda new to C#/MVC with a good bit of experience with software development. I just need a bit of help getting this implemented :)
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/(see $code for more information on how to paste your code)
so as of right now, I have a very simple mvc application, with a controller hitting a public web API - for context, it's a security API that allows you to throw in the hash of a password into the api to scan a db of exposed passwords to determine if the password's been involved in a data breach (we're building a little security website for our capstone) - with this, I need to take the input from the user in the razor front end and pass it into the method as a parameter to be used in the api call
or not necessarily not understanding it, but getting it to all work together - every guide I see online typically has MVC bound to a db of some sort, but we just need to make lil api calls in the front end
I wasn't sure if using MVC was a good call in this application use case - designed to be very minimal with a nice bootstrapped frontend with a bit of controllers in place
mvc's cool bc it helps in getting an application off the ground pretty quick, but once again, I'm not overly used to using it and this may not have been the best call