-1
I am learning the ASP.NET MVC and I came across a situation that would like your help.
I have a view that shows the result of a database query on the screen. Each record shown has an identification (ID), and I need to click change to hit something that is in what is being presented, until then it’s okay.
However, for example, the first record shown is to change the records in table "A", the second record to change the data in table "C", the third in table "D" and so on. The problem is just this, there is a way to click the Edit button, it point to which view corresponds the error and open this view, ie, program if the view has error type 1 opens the view "A", if error type 2 opens the view "B" and so on.
What have you tried to do? Are you making a mistake? Updates the question to make it easier to answer.
– Ricardo
This behavior you can define in Controller. For example, if the edit button runs a method and sends the x ID, it does y.
– Jean Gustavo Prates
It is interesting to make available the code you described there!
– Bsalvo
Yes, there is a way.
– Oralista de Sistemas