Answer the question
In order to leave comments, you need to log in
What is the best way to make a view (MVC)?
Hello. I have two actions that do the same thing only with different data, and their views are slightly different, mainly in color in some places. How can I make one view and pass a bunch of parameters there, or two different views?
Answer the question
In order to leave comments, you need to log in
if actions do the same thing - then it's worth considering whether it makes sense to separate them at all. In this situation, it is better to make one action and one view, although of course you need to look at the code what is happening there and how logical it will be
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question