Last post May 11, 2015 04:40 AM by Krunal Parekh
May 09, 2015 12:47 PM|mcskelle|LINK
I have an existing web.api-project to which i need to add some controllers/views/models from a MVC5-project to reuse an administration backend. The web-api project is very clean and i'd like to keep it that way not adding tons of mvc stuff. The mvc's should
if possible live there own seperate life inside the project and not even use the web-api controllers or models. Side by side you know.
I tried to achieve this by hand not using template or anything, by adding bits and pieces of folders, references, controllers/views/model-classes and config-stuff here and there in the project. Clearly i was not successfull because when i try to view my
cshtml-files the server just returns server errors. Now i wanna start over in more structured manner...so my question is:
With a pure web.api-project at hand, how can i add just basic mvc-support?
May 11, 2015 04:40 AM|Krunal Parekh|LINK
For supporting MVC in pure web-api you will need to add following reference to the project.
Razor View Engine
this article is for adding mvc to web forms but you can get general idea what kind of dlls MVC requires in order for to work.
Hope this helps.