What is not clear is the intended usage of the Web API Controller. Is its purpose mainly to create REST services? Can a razr view post requests to an API Controller (not through ajax)?
In fact nothing stops you write an HtmlMediaTypeFormatter to implement this but it will probably be a lot of work
Just wanted to make it clear that Media Type mainly depend upon mime type. This is why there is an built-in FormUrlEncodedMediaTypeFormatter(instead of HtmlMediaTypeFormatter).
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
imran_ku07
All-Star
45815 Points
7698 Posts
MVP
Re: ApiController and MVC Controller
Apr 24, 2012 04:26 AM|LINK
See this post.
Just wanted to make it clear that Media Type mainly depend upon mime type. This is why there is an built-in FormUrlEncodedMediaTypeFormatter(instead of HtmlMediaTypeFormatter).
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD