コード例 #1
0
        public IActionResult EditProjectType(int id)
        {
            var model = projectTypeService
                        .Include(t => t.ProjectSubType)
                        .Include(t => t.ProjectTypesRoles)
                        .Find(t => t.Id == id);

            model.ProjectSubType = projectSubTypeService.FindAll(t => t.ProjectTypeId == model.Id).ToList();
            return(View(model));
        }