예제 #1
0
        // GET: Races/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var race = await _service.GetByIdAsync(id);

            if (race == null)
            {
                return(NotFound());
            }

            return(View(race));
        }