Search

Categories

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Send mail to the author(s) E-mail

# Tuesday, April 26, 2011
( MVC )
If you want an Index and Index/guid
 
//public ActionResult Index()
//{
// //Guid eventId = id;
// //ViewBag.EventName = uow.Events.Single(e => e.Id == id).Name;
// return View(uow.Races.OrderBy(r => r.Name).ToList());
//}

//[RequireRequestValue("ideventguid")]
//[RequireRequestValue("id")]
public ActionResult Index(Guid idEvent)
{
ViewBag.EventName = uow.Events.Single(e => e.Id == idEvent).Name;
return View(uow.Races.OrderBy(r => r.Name).Where(r => r.EventU.Id == idEvent));
}

All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview