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?

Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Oct 19, 2021, 11:25 PM EDT
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
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Oct 20, 2021, 5:18 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Oct 21, 2021, 1:40 AM EDT