CodeGarden 2014

MVC Purée

2,511 views
June 26, 2014

Andy Butland / Zone

Given my background in the development of both Umbraco CMS and custom web applications using ASP.Net MVC, when MVC rendering support was featured in V4.10, it was the obvious way to go for future projects.

Working at gold partner Zone in London, we've built a number of sites using Umbraco and MVC. We've found that there's actually a number of different ways to do "MVC with Umbraco": the perhaps traditional Umbraco way with a fair bit of logic and data access in the templates or views, using surface controllers and child actions and/or using route hijacking. We've used a number of these approaches and found costs and benefits of each - which I think would make an interesting session.

Currently the model I use - and would focus on in the talk - is to go a more purist MVC approach, using dependency injection, thin controllers with route hijacking, mapping of Umbraco content to custom view models and use of strongly typed views. Tieing all this together is a mapping package (http://our.umbraco.org/projects/developer-tools/umbraco-mapper) that we've recently built, released and discussed on auHangout. We also look to use unit testing where possible.

In summary, the proposed discussion would be on ways to use MVC in Umbraco, and would cover:

  • quick primer on ASP.Net MVC and best practices in this area
  • approaches to MVC in Umbraco
  • surface controllers
  • route hijacking
  • custom view models and strongly typed views
  • mapping from Umbraco and other content to these view models
  • unit testing challenges and approaches
  • Q & A (no doubt there's as much to learn in this area as to impart!)

Rate this video

1 star 2 star 3 star 4 star 5 star
Cisco Carlos jacket online February 14, 2019 10:52 AM Delete

Wow great blog I think my friend was right, My friend suggest me to visit your blog to get useful information and now I’m also satisfied he was right now I’m your visitor. good work sir keep it up. Cisco Carlos jacket online

Nissa February 11, 2019 08:30 AM Delete

In this video clearly shared the details of developing both Umbraco CMS and custom web applications using ASP.Net MVC. While using restart print spooler MVC in Umbraco it supports many features and here everything clearly discussed.

vidya prapti mantra February 02, 2019 06:30 AM Delete

Vidya Prapti Mantras are chanted for awakening intelligence, enhancing memory, sharpening learning power and brightening communication skills.

Alexis Jones January 11, 2019 11:13 AM Delete

Thanks for sharing this useful video.
www Hulu com Activate

Amayra Singh January 06, 2019 10:11 AM Delete

Very nice content...

Simran Preet Kaur December 19, 2018 05:47 AM Delete

Hi! This is my first visit to your blog! It is remarkable among different posts that I ve read in a long time.

Best Mobile Repairing Course in Delhi Ncr
Best Mobile Repairing Institute in Delhi Ncr

Gagan Deep December 14, 2018 09:29 AM Delete

Great! Thanks for your Post and I just subscribe your blog. This is a nice blog..

Find Mobile Repairing Course in New Delhi
Find Mobile Repairing Institute in New Delhi

rick December 02, 2018 12:47 PM Delete

You finished a couple fine focuses there. I did an inquiry on the subject and discovered almost all persons will oblige with your online journal. backlinks

Arlo Max November 24, 2018 09:52 AM Delete

Very kind to see this information you shared. I saved it to my bookmarks and will visit on daily basis.
Andrew Marc jacket

Lina Dany November 24, 2018 09:48 AM Delete

Nice video. Really liked it
I have to upload my videos about Winter Shearling Jackets

Ronaldane November 20, 2018 12:43 PM Delete

Happy to be part of it.

shawnkemp November 02, 2018 07:10 AM Delete

It is a new information you have shared with us. Accidentally I have seen the post and I came to know about the best meal replacement shakes. Actually, Chris Jericho WWE Jacket first time i was hearing about this shakes

liza August 11, 2018 11:15 AM Delete

If I create a custom internet utility for a business enterprise, how can i make certain the copyright will belong to me.?
I need to ensure the custom utility code may be used for different corporations, without any prison implications. i'm in the big apple and i am a IT consultant https://www.assignmentmoz.co.uk/

apiw igi May 29, 2018 10:59 AM Delete

You can now see the new lectures of the great advice like the embrace, extend and enrich and more others which are quite interesting. Catch the best moment with https://www.aussiewritingreviews.com/edubirdie-review/ and enjoy the new choice of the life in this session.

Add a comment...
Post as (log out)