In my last post, I have explained the use of View Model objects in ASP.NET MVC applications.

In this post, let me discuss on view model objects by using the C# 4 dynamic and ExpandoObjectI do not recommending to use dynamic keyword for creating View Model objects that will loss the intellisense feature of Visual Studio.

  publicActionResultList() {     dynamicviewModel = newExpandoObject();     viewModel.ContactGroup = contactRepository.ListGroups().ToSelectListItems(-1);     returnView(viewMode...
Shout it
Voted 2009 “Best ASP.NET Hosting” by asp.netPRO Magazine!
.