Skip to content

Instantly share code, notes, and snippets.

View micahasmith's full-sized avatar

Micah Smith micahasmith

View GitHub Profile
@micahasmith
micahasmith / object.cshtml
Created November 6, 2012 18:19
Quick object in C#
@{
object copy = new
{
year = Model.Element("CopyrightDate").Content.Value,
school = Model.Element("SchoolName").Content.Value,
address = Model.Element("SchoolAddress").Content.Value,
city = Model.Element("SchoolCity").Content.Value,
state = Model.Element("SchoolState").Content.Value,
phone1 = Model.Element("SchoolPhonePrimary").Content.Value,
phone2 = Model.Element("SchoolPhoneSecondary").Content.Value