Skip to content

Instantly share code, notes, and snippets.

@davidsonsousa
Created April 18, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsonsousa/67721b505f7070db0c14 to your computer and use it in GitHub Desktop.
Save davidsonsousa/67721b505f7070db0c14 to your computer and use it in GitHub Desktop.
public class GenericViewModel
{
[Display(Name = "Country")]
public Guid SelectedCountryId { get; set; }
public List<SelectListItem> CountryItems { get; set; }
public GenericViewModel()
{
var ddlHelper = new DropDownListHelper();
this.CountryItems = ddlHelper.CountryItems.ToList();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment