// 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)); }
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)); }