ASP.NET MVC Site To Admin Befor Publish To Public
Creating a website with ASP.net MVC, when a visitor post an article how to make it, first come to administrator then publishing on开发者_JS百科 the site?
Do these things
- Add a column IsApproved(bit) to your table where you store articles.
- When a visitor posts an article, save the article with IsApproved as falsy(0)
- Send an email to admin notifying the posting of a new article. (not mandatory)
- Design a view for admin were he can read unapproved articles and then approve them. (ie make IsApproved='1')
- Change the business logic on the site to allow only IsApproved='1' articles to be shown.
Hope this helps.
精彩评论