A
A
Arthur2017-02-27 20:00:50
ASP.NET
Arthur, 2017-02-27 20:00:50

How to use PartialView on Edit/Create?

The essence of the problem:
There are controllers Create / Edit of the Customer model, which has many parameters and an associated Location type. I need to display the Location fields through the PartialView, because not only Customer has Location + there will be Google Maps API scripts (output to the Scripts section).
Issue:
When submitting a form on a Customer model that has the associated Location fields populated, Location = null is returned to the controller. How to solve this problem?
PS
I understand that you can make CustomerView specifically for Create / Edit, but this will spoil the architecture of the project.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question