entity framework - Generate pages based on title and content in ASP.net MVC3 -
i looking might not possible, leave community decide that.
i have table called content, in table following: title , content.
based on information user able input title , content , title page created can go site.com/title , see content page.
i sure there more this, how ever that's require guy's help. not looking create cms, instead looking create piece of cms, "page generation" part.
i don't have code idea , looking direction take produce code.
thoughts?
create route hardcoded controller takes string (the title) parameter. in controller, use title pull content out of database. pass content view (ensuring html sanitized) , display it.
routes.maproute( name: "notacms", url: "{title}", defaults: new { controller = "notacms", action = "index" } );