Hello, I have two models, one is called assignment and the other is called grades, I want to create different grades when a assignment is created in a form .
I can save both models in the same post method , I know it's a bad practice , that's why I'm looking for an alternative ,but it's there any form to save both object's without using the same method?
Rijwan AnsariPosted Oct 21, 2021, 5:40 AM
Srinivasan RamamoorthiPosted Oct 20, 2021, 9:18 AM
Srinivasan RamamoorthiPosted Oct 20, 2021, 3:25 AM
Using dynamic model you can post multiple models Refer this link https://www.c-sharpcorner.com/UploadFile/ff2f08/multiple-models-in-single-view-in-mvc/
there are also ways mentioned in this article