Skip to content

Instantly share code, notes, and snippets.

@jbuedel
Created March 18, 2013 16:27
Show Gist options
  • Save jbuedel/5188520 to your computer and use it in GitHub Desktop.
Save jbuedel/5188520 to your computer and use it in GitHub Desktop.
The view model *is* the list vs. the view model *has* the list.
public class PaymentHistory : List<PaymentHistory.PaymentItem>
{
public class PaymentItem
{
public DateTime TransDate { get; set; }
}
public List<int> YearsAvailable { get; set; }
}
public class PaymentHistory2
{
public class PaymentItem
{
public DateTime TransDate { get; set; }
}
public List<PaymentHistory2.PaymentItem> Items { get; set; }
public List<int> YearsAvailable { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment