Made a portal with the standard MVC 4 “internet template”, now would like to disclose some information on mobile devices.
Using the standard “mobile template” the account model differs from the “internet template”.
What is the easiest way to map to the same model?
What you need (to login) using the “internet template” are some small changes:
Use the WebSecurity for the login
Add your RedirectToLocal()
Add WebMatrix. Make a reference to WebMatrix.Data and WebMatrix.WebData. For both Dlls change the properties in the property window and set Copy local True. Next use it:
Edit your web.config and change the lines for membership en roleManager
Initialize the database connection: