This project is read-only.

Shared views between projects one in an area?

Oct 4, 2012 at 9:44 PM

I have a set of views whose model is an interface. I have them compiled with razor geneartor in my first project. In my second project I have referenced the first and want to use these view inside of an area (first project does not use areas) creating my interface typed model (with a different derived type). How can I do this? And what if my views have the same name? Would I just but in the path in the action "return View('path', model);" ? So if the view is in P1Controller/Index in the first project, then in the second projects area controller could I do return View('P1Controller/Index', newmodel); ?? Or?

Thanks