Problem: Asp.Net Core MVC Razor View Form not posting data to the Server-Side
Solution: Make sure that the Modal you are posting to the Server-Side is valid, this includes creating a new Modal Object populated with all the altributes of the Data Modal.
This is your function(ModalName objectInstance){
//This is a new Object you're trying to create populated by data from http request (posted)
ModalName newName = new ModalName(){
id = objectInstance.id,
anotherDatapropertyName = objectInstance.anotherDatapropertyName,
//Go ahead and create the data modal in here
}
//Now that you have the complete data modal, you can update the database or create a new object.
//Always good to return something to the caller
return View("SomeDataInHere");
}