Created
June 30, 2012 23:27
-
-
Save taylonr/3025997 to your computer and use it in GitHub Desktop.
Simple.Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Index() | |
{ | |
var m = Database.Open().Media.FindByName("KitKat Killer"); | |
return View(new Media{Name = m.Name, Url = m.Url}); | |
} | |
public class Media | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public string Tag { get; set; } | |
public string Url { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment