Add New Page BE

Topics: Business Logic Layer
Jul 1, 2014 at 5:33 PM
I would like to add one custom web page in blogengine. Can you walk me through what is the best way to do that. The web page asp will use C# and SQL Linq. I would like a page with blogenginee user permission and angular js. What is the structure for admin page ? as well as view page. Do you have developer guideline? I would like to know how to generate asp page.
Jul 1, 2014 at 8:02 PM
In a brief:
  1. Create view in admin/views
  2. Add route in admin/app.js
  3. Add angular controller in admin/controllers if you need it do something new
  4. Add web api controller if you need do something new on backend
    • if you do #4, you probably want to create repository in blogengine.core/data
    • register repository in appcode/app_start/unity.config, so controller can find it
Then it will be very hard to upgrade and you stuck with old code eventually.
Much better way is to use custom extensions/widgets/controls etc. They can have custom admin pages if needed.
Jul 2, 2014 at 12:52 AM
Do you have sample code? I want to create one to add/edit/delete data from database using asp, angular controller. Do we need to setup angular controller to notify app.js, view and unity.config?