Exemplo n.º 1
0
        // GET: Time/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var timeEntity = await _timeRepository
                             .GetAsync(m => m.Id == id);

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

            return(View(timeEntity));
        }