示例#1
0
        /// <summary>
        /// Shows code detail selected by id
        /// </summary>
        /// <param name="id">id of detail to show</param>
        /// <returns></returns>
        public async Task <IActionResult> Detail(int id)
        {
            var code = await codeRepository.FindByIdAsync(id);

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

            return(View(code));
        }