asp.net mvc - Need advice on workflow of MVC project -


so new programming , working in c# , learning mvc. have undertaken first personal project put practice have been learning books/tutorials have been following. project typical store list products, has shopping cart, user account, admin site...etc.

i have managed wire nhibernate mysql db, , posting records view.

my question "where should start?". seems go lot of different directions, admin site manage site , products, getting products showing on site like, user accounts. advice of how "should" tackle each component?

i leaning towards admin site since logically putting products in store comes before showing products on store.

any advice appreciated.

i concur @tod

pick portion of website needed , build it. build model (include viewmodel), controller, , view.

in case, chose start users.

  1. i created database , users table (no didn't use code first or ef)
  2. then created linq dbml file
  3. then created super simple repository talks linq classes
  4. next created service layer little more heavy lifting before communicating repository layer
  5. following that, build viewmodel "transform" data used in view. included building htmlhelpers , extension methods.
  6. now controller. build new viewmodel object, pass object viewmodel, , return viewmodel view.
  7. lastly implemented view, did css , markup.

so when visit site, don't see whole lot except nice finished users section. includes sign-up area, login area, etc.

now users section finished, next big section "events" whereby start process on again.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -