コード例 #1
0
        [HttpGet] // GET: Module/Details/5
        public async Task <IActionResult> Details(string Id)
        {
            if (Id == null)
            {
                return(NotFound());
            }
            var module = await moduleRepository.FindByIdAsync(Id);

            if (module == null)
            {
                return(NotFound());
            }
            return(View(module));
        }