/// <summary>Add the Chosen people</summary> public static void AddPersons(List<Person> persons) { _theChosen = new List<Person>(); _theChosen.Add(_johnPapa = new Person { FirstName = "John", LastName = "Papa", Email = "*****@*****.**", Blog = "http://johnp.contoso.com", Twitter = "@john_papa", Gender = "M", Bio = "Husband, father, and Catholic enjoying every minute with my family. Microsoft Regional Director, Evangelist, speaker, author, and Pluralsight trainer.", }); _theChosen.Add(_danWahlin =new Person { FirstName = "Dan", LastName = "Wahlin", Email = "*****@*****.**", Blog = "http://danw.contoso.com", Twitter = "@danwahlin", Gender = "M", Bio = "Chief Architect at Wahlin Consulting. Provide consulting & training on jQuery, HTML5, ASP.NET, SharePoint. Husband & father, like to write and record music.", }); _theChosen.Add(_wardBell = new Person { FirstName = "Ward", LastName = "Bell", Email = "*****@*****.**", Blog = "http://wardb.contoso.com", Twitter = "@wardbell", Gender = "M", Bio = "V.P. of Technology at IdeaBlade. Speaks often on client application development issues to anyone who will listen. Likes sociology, history, poetry, and ridiculous clothes.", }); _theChosen.Add(_hansFjallemark = new Person { FirstName = "Hans", LastName = "Fjällemark", Email = "*****@*****.**", Blog = "http://hansf.contoso.com", Twitter = "@hfjallemark", Gender = "M", Bio = "Freelancing developer & designer based in Sweden. I spend most of my time implementing usable and attractive UX in HTML5 or Silverli.. no wait, just HTML5:) ", }); _theChosen.Add(_jimCowart = new Person { FirstName = "Jim", LastName = "Cowart", Email = "*****@*****.**", Blog = "http://jimc.contoso.com", Twitter = "@ifandelse", Gender = "M", Bio = "Husband, father, architect, developer, tea drinker. Opinions are my own. Unless they're good", }); _theChosen.Add(_ryanNiemeyer = new Person { FirstName = "Ryan", LastName = "Niemeyer", Email = "*****@*****.**", Blog = "http://ryann.contoso.com/", Twitter = "@rpniemeyer", Gender = "M", Bio = "Coder, tester, father, and husband. Never short on ideas. Love to learn and collaborate.", }); _theChosen.Add(_scottGuthrie = new Person { FirstName = "Scott", LastName = "Guthrie", Email = "*****@*****.**", Blog = "http://scottg.contoso.com", Twitter = "@scottgu", Gender = "M", Bio = "I live in Seattle and build a few products for Microsoft", }); _theChosen.Add(_steveSanderson = new Person { FirstName = "Steve", LastName = "Sanderson", Email = "*****@*****.**", Blog = "http://steves.contoso.com", Twitter = "@stevensanderson", Gender = "M", Bio = "Also known as Steven Sanderson", }); _theChosen.Add(_aaronSkonnard = new Person { FirstName = "Aaron", LastName = "Skonnard", Email = "*****@*****.**", Blog = "http://aarons.contoso.com", Twitter = "@skonnard", Gender = "M", Bio = "Changing the way software professionals learn. President/CEO of Pluralsight.", }); _theChosen.Add(_fritzOnion = new Person { FirstName = "Fritz", LastName = "Onion", Email = "*****@*****.**", Blog = "http://fritzo.contoso.com", Twitter = "", Gender = "M", Bio = "A co-founder of Pluralsight where he serves as the Editor in Chief.", }); _theChosen.Add(_johnSmith = new Person { FirstName = "John", LastName = "Smith", Email = "*****@*****.**", Blog = "http://johns.contoso.com", Twitter = "@onefloridacoder", Gender = "M", Bio = "Christian .NET Dev & Orlando .NET User Group VP; 4,5,6-string bass player.", }); _theChosen.Add(_scottHunter = new Person { FirstName = "Scott", LastName = "Hunter", Email = "*****@*****.**", Blog = "http://scotth.contoso.com", Twitter = "@coolcsh", Gender = "M", Bio = "Program Manager at Microsoft on web technologies such as Azure, ASP.NET, MVC, Web API, Entity Framework, NuGet and more...", }); _theChosen.Add(_madsKristensen = new Person { FirstName = "Mads", LastName = "Kristensen", Email = "*****@*****.**", Blog = "http://madsk.contoso.com", Twitter = "@mkristensen", Gender = "M", Bio = "Program Manager for Microsoft Web Platform & Tools and founder of BlogEngine.NET", }); _theChosen.Add(_howardDierking = new Person { FirstName = "Howard", LastName = "Dierking", Email = "*****@*****.**", Blog = "http://howardd.contoso.com", Twitter = "@howard_dierking", Gender = "M", Bio = "I like technology...a lot...", }); _theChosen.Add(_elijahManor = new Person { FirstName = "Elijah", LastName = "Manor", Email = "*****@*****.**", Blog = "http://elijiahm.contoso.com", Twitter = "@elijahmanor", Gender = "M", Bio = "I am a Christian and a family man. I develops at appendTo as a Senior Architect providing corporate jQuery support, training, and consulting.", }); _theChosen.Add(_estebanGarcia = new Person { FirstName = "Esteban", LastName = "Garcia", Email = "*****@*****.**", Blog = "http://estebang.contoso.com", Twitter = "@EstebanFGarcia", Gender = "M", Bio = "TFS | Visual Studio ALM Ranger | Scrum | .NET Development | Solutions Architect at @AgileThought | @ONETUG President | UCF Knight", }); _theChosen.Add(_shawnWildermuth = new Person { FirstName = "Shawn", LastName = "Wildermuth", Email = "*****@*****.**", Blog = "http://shawnw.contoso.com", Twitter = "@ShawnWildermuth", Gender = "M", Bio = "Author, trainer, software guy, Braves fan, guitar player, Xbox maven, coffee addict and astronomy fan.", }); _theChosen.Add(_peteBrown = new Person { FirstName = "Pete", LastName = "Brown", Email = "*****@*****.**", Blog = "http://peteb.contoso.com", Twitter = "@Pete_Brown", Gender = "M", Bio = "Microsoft XAML and blinky lights guy. Father of two, author, woodworker, C64.", }); _theChosen.Add(_timHeuer = new Person { FirstName = "Tim", LastName = "Heuer", Email = "*****@*****.**", Blog = "http://timh.contoso.com", Twitter = "@timheuer", Gender = "M", Bio = "I work on XAML client platforms at Microsoft and trying to be the best dad/husband I can be when I'm not working.", }); _theChosen.Add(_julieLerman = new Person { FirstName = "Julie", LastName = "Lerman", Email = "*****@*****.**", Blog = "http://juliel.contoso.com", Twitter = "@julielerman", Gender = "F", Bio = "Vermont Geekette, .NET (and Entity Framework) Mentor/Consultant, Author, MS MVP, INETA Speaker, Vermont.NET User Group Leader", }); _theChosen.Add(_glennBlock = new Person { FirstName = "Glenn", LastName = "Block", Email = "*****@*****.**", Blog = "http://glennb.contoso.com", Twitter = "@gblock", Gender = "M", Bio = "Father, Husband, Spiritualist, Software geek, Change agent, REST Head", }); _theChosen.Add(_scottHanselman = new Person { FirstName = "Scott", LastName = "Hanselman", Email = "*****@*****.**", Blog = "http://shanselman.contoso.com", Twitter = "@shanselman", Gender = "M", Bio = "Tech, Diabetes, Parenting, Race, Linguistics, Fashion, Podcasting, Open Source, Culture, Code, Ratchet, Phony.", }); _theChosen.Add(_jesseLiberty = new Person { FirstName = "Jesse", LastName = "Liberty", Email = "*****@*****.**", Blog = "http://jliberty.contoso.com", Twitter = "@JesseLiberty", Gender = "M", Bio = "Telerik XAML Evangelist", }); _theChosen.Add(_ericBarnard = new Person { FirstName = "Eric", LastName = "Barnard", Email = "*****@*****.**", Blog = "http://ebarnard.contoso.com", Twitter = "@EricBarnard", Gender = "M", Bio = "Technologist and Entrepreneur trying to find my where my path and the world's needs cross", }); _theChosen.Add(_daveWard = new Person { FirstName = "Dave", LastName = "Ward", Email = "*****@*****.**", Blog = "http://dward.contoso.com", Twitter = "@encosia", Gender = "M", Bio = "Microsoft Regional Director", }); _theChosen.Add(_mikeCallaghan = new Person { FirstName = "Mike", LastName = "Callaghan", Email = "*****@*****.**", Blog = "http://mcallaghan.contoso.com", Twitter = "@walkingriver", Gender = "M", Bio = "Mike has been developing software professionally since 1995, primarily in Microsoft environments.", }); _theChosen.ForEach(p => p.ImageSource = (p.FirstName + "_" + p.LastName + ".jpg").ToLowerInvariant()); _hansFjallemark.ImageSource = "hans_fjallemark.jpg"; // get rid of 'ä' persons.AddRange(_theChosen); }
// Update an existing person // PUT /api/persons/ public HttpResponseMessage Put(Person person) { Uow.Persons.Update(person); Uow.Commit(); return new HttpResponseMessage(HttpStatusCode.NoContent); }
/// <summary>Add the Chosen people</summary> public static void AddPersons(List<Person> persons) { _theChosen = new List<Person>(); _theChosen.Add(_johnPapa = new Person { FirstName = "John", LastName = "Papa", Email = "*****@*****.**", Blog = "http://johnp.contoso.com", Twitter = "@john_papa", Gender = "M", Bio = "Husband, father, and Catholic enjoying every minute with my family. Microsoft Regional Director, Evangelist, speaker, author, and Pluralsight trainer.", }); _theChosen.Add(_colleenPapa = new Person { FirstName = "Colleen", LastName = "Papa", Email = "*****@*****.**", Blog = "http://colleenp.contoso.com", Twitter = "@colleenpapa", Gender = "F", Bio = "Hard working wife and mother", }); _theChosen.Add(_danWahlin =new Person { FirstName = "Dan", LastName = "Wahlin", Email = "*****@*****.**", Blog = "http://danw.contoso.com", Twitter = "@danwahlin", Gender = "M", Bio = "Chief Architect at Wahlin Consulting. Provide consulting & training on jQuery, HTML5, ASP.NET, SharePoint. Husband & father, like to write and record music.", }); _theChosen.Add(_wardBell = new Person { FirstName = "Ward", LastName = "Bell", Email = "*****@*****.**", Blog = "http://wardb.contoso.com", Twitter = "@wardbell", Gender = "M", Bio = "V.P. of Technology at IdeaBlade. Speaks often on client application development issues to anyone who will listen. Likes sociology, history, poetry, and ridiculous clothes.", }); _theChosen.Add(_hansFjallemark = new Person { FirstName = "Hans", LastName = "Fjällemark", Email = "*****@*****.**", Blog = "http://hansf.contoso.com", Twitter = "@hfjallemark", Gender = "M", Bio = "Freelancing developer & designer based in Sweden. I spend most of my time implementing usable and attractive UX in HTML5 or Silverli.. no wait, just HTML5:) ", }); _theChosen.Add(_bradGreen = new Person { FirstName = "Brad", LastName = "Green", Email = "*****@*****.**", Blog = "http://bradg.contoso.com", Twitter = "@bradlygreen", Gender = "M", Bio = "I work at Google where I manage AngularJS and Google's internal sales productivity applications. I run barefoot. I'm a dad.", }); _theChosen.Add(_igorMinar = new Person { FirstName = "Igor", LastName = "Minar", Email = "*****@*****.**", Blog = "http://igorm.contoso.com", Twitter = "@igorminar", Gender = "M", Bio = "Software geek changing the web with angularjs.org", }); _theChosen.Add(_mikeWoodring = new Person { FirstName = "Mike", LastName = "Woodring", Email = "*****@*****.**", Blog = "http://mikew.contoso.com", Twitter = "@mcwoodring ", Gender = "M", Bio = "VP of Developer Content - Enterprise Software at Pluralsight", }); _theChosen.Add(_jimCowart = new Person { FirstName = "Jim", LastName = "Cowart", Email = "*****@*****.**", Blog = "http://jimc.contoso.com", Twitter = "@ifandelse", Gender = "M", Bio = "Husband, father, architect, developer, tea drinker. Opinions are my own. Unless they're good", }); _theChosen.Add(_ryanNiemeyer = new Person { FirstName = "Ryan", LastName = "Niemeyer", Email = "*****@*****.**", Blog = "http://ryann.contoso.com/", Twitter = "@rpniemeyer", Gender = "M", Bio = "Coder, tester, father, and husband. Never short on ideas. Love to learn and collaborate.", }); _theChosen.Add(_scottGuthrie = new Person { FirstName = "Scott", LastName = "Guthrie", Email = "*****@*****.**", Blog = "http://scottg.contoso.com", Twitter = "@scottgu", Gender = "M", Bio = "I live in Seattle and build a few products for Microsoft", }); _theChosen.Add(_steveSanderson = new Person { FirstName = "Steve", LastName = "Sanderson", Email = "*****@*****.**", Blog = "http://steves.contoso.com", Twitter = "@stevensanderson", Gender = "M", Bio = "Also known as Steven Sanderson", }); _theChosen.Add(_aaronSkonnard = new Person { FirstName = "Aaron", LastName = "Skonnard", Email = "*****@*****.**", Blog = "http://aarons.contoso.com", Twitter = "@skonnard", Gender = "M", Bio = "Changing the way software professionals learn. President/CEO of Pluralsight.", }); _theChosen.Add(_fritzOnion = new Person { FirstName = "Fritz", LastName = "Onion", Email = "*****@*****.**", Blog = "http://fritzo.contoso.com", Twitter = "", Gender = "M", Bio = "A co-founder of Pluralsight where he serves as the Editor in Chief.", }); _theChosen.Add(_johnSmith = new Person { FirstName = "John", LastName = "Smith", Email = "*****@*****.**", Blog = "http://johns.contoso.com", Twitter = "@onefloridacoder", Gender = "M", Bio = "Christian .NET Dev & Orlando .NET User Group VP; 4,5,6-string bass player.", }); _theChosen.Add(_scottHunter = new Person { FirstName = "Scott", LastName = "Hunter", Email = "*****@*****.**", Blog = "http://scotth.contoso.com", Twitter = "@coolcsh", Gender = "M", Bio = "Program Manager at Microsoft on web technologies such as Azure, ASP.NET, MVC, Web API, Entity Framework, NuGet and more...", }); _theChosen.Add(_madsKristensen = new Person { FirstName = "Mads", LastName = "Kristensen", Email = "*****@*****.**", Blog = "http://madsk.contoso.com", Twitter = "@mkristensen", Gender = "M", Bio = "Program Manager for Microsoft Web Platform & Tools and founder of BlogEngine.NET", }); _theChosen.Add(_howardDierking = new Person { FirstName = "Howard", LastName = "Dierking", Email = "*****@*****.**", Blog = "http://howardd.contoso.com", Twitter = "@howard_dierking", Gender = "M", Bio = "I like technology...a lot...", }); _theChosen.Add(_elijahManor = new Person { FirstName = "Elijah", LastName = "Manor", Email = "*****@*****.**", Blog = "http://elijiahm.contoso.com", Twitter = "@elijahmanor", Gender = "M", Bio = "I am a Christian and a family man. I develops at appendTo as a Senior Architect providing corporate jQuery support, training, and consulting.", }); _theChosen.Add(_estebanGarcia = new Person { FirstName = "Esteban", LastName = "Garcia", Email = "*****@*****.**", Blog = "http://estebang.contoso.com", Twitter = "@EstebanFGarcia", Gender = "M", Bio = "TFS | Visual Studio ALM Ranger | Scrum | .NET Development | Solutions Architect at @AgileThought | @ONETUG President | UCF Knight", }); _theChosen.Add(_shawnWildermuth = new Person { FirstName = "Shawn", LastName = "Wildermuth", Email = "*****@*****.**", Blog = "http://shawnw.contoso.com", Twitter = "@ShawnWildermuth", Gender = "M", Bio = "Author, trainer, software guy, Braves fan, guitar player, Xbox maven, coffee addict and astronomy fan.", }); _theChosen.Add(_peteBrown = new Person { FirstName = "Pete", LastName = "Brown", Email = "*****@*****.**", Blog = "http://peteb.contoso.com", Twitter = "@Pete_Brown", Gender = "M", Bio = "Microsoft XAML and blinky lights guy. Father of two, author, woodworker, C64.", }); _theChosen.Add(_robEisenberg = new Person { FirstName = "Rob", LastName = "Eisenberg", Email = "*****@*****.**", Blog = "http://reisenberg.contoso.com", Twitter = "@EisenbergEffect", Gender = "M", Bio = "Chief Architect at Blue Spire Consulting, Inc. and director of the Caliburn.Micro and Durandal projects.", }); _theChosen.Add(_timHeuer = new Person { FirstName = "Tim", LastName = "Heuer", Email = "*****@*****.**", Blog = "http://timh.contoso.com", Twitter = "@timheuer", Gender = "M", Bio = "I work on XAML client platforms at Microsoft and trying to be the best dad/husband I can be when I'm not working.", }); _theChosen.Add(_julieLerman = new Person { FirstName = "Julie", LastName = "Lerman", Email = "*****@*****.**", Blog = "http://juliel.contoso.com", Twitter = "@julielerman", Gender = "F", Bio = "Vermont Geekette, .NET (and Entity Framework) Mentor/Consultant, Author, MS MVP, INETA Speaker, Vermont.NET User Group Leader", }); _theChosen.Add(_glennBlock = new Person { FirstName = "Glenn", LastName = "Block", Email = "*****@*****.**", Blog = "http://glennb.contoso.com", Twitter = "@gblock", Gender = "M", Bio = "Father, Husband, Spiritualist, Software geek, Change agent, REST Head", }); _theChosen.Add(_scottHanselman = new Person { FirstName = "Scott", LastName = "Hanselman", Email = "*****@*****.**", Blog = "http://shanselman.contoso.com", Twitter = "@shanselman", Gender = "M", Bio = "Tech, Diabetes, Parenting, Race, Linguistics, Fashion, Podcasting, Open Source, Culture, Code, Ratchet, Phony.", }); _theChosen.Add(_jesseLiberty = new Person { FirstName = "Jesse", LastName = "Liberty", Email = "*****@*****.**", Blog = "http://jliberty.contoso.com", Twitter = "@JesseLiberty", Gender = "M", Bio = "Telerik XAML Evangelist", }); _theChosen.Add(_ericBarnard = new Person { FirstName = "Eric", LastName = "Barnard", Email = "*****@*****.**", Blog = "http://ebarnard.contoso.com", Twitter = "@EricBarnard", Gender = "M", Bio = "Technologist and Entrepreneur trying to find my where my path and the world's needs cross", }); _theChosen.Add(_daveWard = new Person { FirstName = "Dave", LastName = "Ward", Email = "*****@*****.**", Blog = "http://dward.contoso.com", Twitter = "@encosia", Gender = "M", Bio = "Microsoft Regional Director", }); _theChosen.Add(_mikeCallaghan = new Person { FirstName = "Mike", LastName = "Callaghan", Email = "*****@*****.**", Blog = "http://mcallaghan.contoso.com", Twitter = "@walkingriver", Gender = "M", Bio = "Mike has been developing software professionally since 1995, primarily in Microsoft environments.", }); _theChosen.Add(_reyBango = new Person { FirstName = "Rey", LastName = "Bango", Email = "*****@*****.**", Blog = "http://rbango.contoso.com", Twitter = "@reybango", Gender = "M", Bio = "Delivering HTML5 & JavaScript babies. Web dev lover at Microsoft.", }); _theChosen.Add(_johnSonmez = new Person { FirstName = "John", LastName = "Sonmez", Email = "*****@*****.**", Blog = "http://jsonmez.contoso.com", Twitter = "@jsonmez", Gender = "M", Bio = "I make the complex simple.", }); _theChosen.Add(_meganRussell = new Person { FirstName = "Megan", LastName = "Russell", Email = "*****@*****.**", Blog = "http://mrussell.contoso.com", Twitter = "@megbruss", Gender = "F", Bio = "Lover of all things new and creative. Advocate of education. Accepts all challenges. Fitness Junkie. Health Nut. Ballerina. Teacher. Editor. Marketing. @pluralsight", }); _theChosen.Add(_craigShoemaker = new Person { FirstName = "Craig", LastName = "Shoemaker", Email = "*****@*****.**", Blog = "http://cshoemaker.contoso.com", Twitter = "@craigshoemaker", Gender = "M", Bio = "Technical Evangelist for all things awesome. Host of Polymorphic Podcast. Author for @pluralsight & @CODEmagazine", }); _theChosen.Add(_jasonSalmond = new Person { FirstName = "Jason", LastName = "Salmond", Email = "*****@*****.**", Blog = "http://jsalmond.contoso.com", Twitter = "@bruthafish", Gender = "M", Bio = "Husband to a beautiful wife, father of four boys, bass singer, Acappella junkie, Pluralsight editor, the new XML.", }); _theChosen.Add(_keithSparkjoy = new Person { FirstName = "Keith", LastName = "Sparkjoy", Email = "*****@*****.**", Blog = "http://ksparkjoy.contoso.com", Twitter = "@keithbrown42", Gender = "M", Bio = "CTO and cofounder of Pluralsight, providing hardcore tech training for both software developers and IT pros alike.", }); _theChosen.ForEach(p => p.ImageSource = (p.FirstName + "_" + p.LastName + ".jpg").ToLowerInvariant()); _hansFjallemark.ImageSource = "hans_fjallemark.jpg"; // get rid of 'ä' persons.AddRange(_theChosen); }