Guest User

Untitled

a guest
Nov 20th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public ActionResult Index()
  2. {
  3. var m = Database.Open().Media.FindByName("KitKat Killer");
  4.  
  5. return View(new Media{Name = m.Name, Url = m.Url});
  6. }
  7.  
  8. public class Media
  9. {
  10. public int Id { get; set; }
  11. public string Name { get; set; }
  12. public string Tag { get; set; }
  13. public string Url { get; set; }
  14. }
Add Comment
Please, Sign In to add comment