Hey all, Sorry its me again. This time I have a question that I think is fairly general. I am using code that is almost exactly the same over and over again within a controller to set up a viewModel. My question was, is there a way to store this code somewhere within the MVC project, possibly have it return a viewModel, and call it from controllers also within the same project.
I am trying to follow DRY but cant seem to find any resources on this one. Thanks in advance!