예제 #1
0
        // 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()));
        }
예제 #2
0
        // GET: Race
        public ActionResult Index()
        {
            var         userId  = Guid.Parse(User.Identity.GetUserId());
            RaceService service = new RaceService(userId);
            var         race    = service.GetAllMyRaces();

            return(View(race));
        }