コード例 #1
0
        public async Task <IActionResult> Details(int id)
        {
            var project = await _dbContext.Project.FindAsync(id);

            if (project == null)
            {
                return(NotFound());
            }
            var model = TemplateViewModel.CreateInstance(project);

            return(View(model));
        }