So basically, I have a project with heaps of generated code and I'm trying to take form input from a view and pass it back to my controller where I have an API method that I hope would apply the form data back to the database I'm working with. The issue is that the form data is not being returned to be used by my POST method. I've done some research on this and found some ideas that seemed promising, but I couldn't see them to the end as I kept hitting a wall. I've attempted creating a view model but from the examples that I've seen, I'd need some sort of context ("DbContext") to make this happen, and my project does not use any means that I'm familiar with to connect to a database. As I've mentioned, most of my project consists of generated code that I'm sure will work, yet I'm not sure how to make it work in this instance.

Related posts

Recent Viewed