I'm learning ASP.NET MVC and I came across a situation that would like the help of you.
I have a view that shows the result of a database query on the screen. Each record shown has an ID (ID), and I need to click change to hit something that is in the one that is being presented, so far so good.
However, for example, the first record shown is to change the records of table "A", the second record to change the data of table "C", the third of table "D", and so on. The problem is precisely this, there is a way to click on the Edit button, it points to which view corresponds to the error and open this view, ie program if the view has error type 1 opens the "A" view, if error type 2 opens the view "B" and so on.