// GET: Race public IHttpActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); //return new RaceService(userId); RaceService service = new RaceService(userId); return(Ok(service.GetAllMyRaces())); }
// GET: Race public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); RaceService service = new RaceService(userId); var race = service.GetAllMyRaces(); return(View(race)); }