I'm building a new design for my app. So the problem is removed.
Polymorphisme pour create.cshtml/create.cshtml.cs ?

Hi,
I have a model class named "Paragraph Line"
and two other classes, Paragraph and Summary, which both contain a collection of Paragraph Lines. Paragraph line has foreign keys Guid? ParagraphId and Guid? SummaryId, filled in according to the attachment to a paragraph or a summary.
I have a "create" form for a Paragraph Line, but the behaviors are different depending on the type of the parent (notably the GetParent(parentId) method which returns an instance of Paragraph or of Summary).
I am thinking of using polymorphism for the Create.cshtml and Create.csthml.cs files, can you give me advice on the best way to manage?
Thanks in advance.