예제 #1
0
        // GET: ProjectTypes/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ProjectType projectType = _projectTypeService.Find(id);

            if (projectType == null)
            {
                return(HttpNotFound());
            }
            return(View(projectType));
        }
예제 #2
0
        public IActionResult EditProjectSubType(int id)
        {
            var model = projectSubTypeService.Find(t => t.Id == id);

            model.ProjectType = projectTypeService.Find(t => t.Id == model.ProjectTypeId);
            return(View(model));
        }