¡@

Home 

c# Programming Glossary: languageviewmodel

'object' does not contain a definition for 'X'

http://stackoverflow.com/questions/7652749/object-does-not-contain-a-definition-for-x

fix your issue you could define a view model public class LanguageViewModel public int Id get set public string Name get set public string.. view model ViewBag.Languages db.Languages .Select x new LanguageViewModel Name x.Name EnglishName x.EnglishName Id x.Id .ToList And now.. ActionResult Foo var model db .Languages .Select x new LanguageViewModel Name x.Name EnglishName x.EnglishName Id x.Id .ToList return..