public ActionResult Update(int id) { var model = _designService.GetByKey(id); ViewData["ParentCategories"] = _categoryService.GetParents(1); //parent type production return(View(model)); }