public virtual ActionResult Update(long requestId) { var userId = long.Parse(User.Identity.GetUserId()); var commissionModel = _comissionService.FindInfoCommission(requestId); var enumGrade = EnumerationService.GetEnumValues <Grade>(); var enumGradeList = new SelectList(enumGrade, "Value", "Text"); TempData["Grade"] = enumGradeList; var enumMilitaryServiceStatus = EnumerationService.GetEnumValues <MilitaryServiceStatus>(); var enumMilitaryServiceStatusList = new SelectList(enumMilitaryServiceStatus, "Value", "Text"); TempData["MilitaryServiceStatus"] = enumMilitaryServiceStatusList; var gender = EnumerationService.GetEnumValues <Gender>(); var genderList = new SelectList(gender, "Value", "Text"); TempData["Gender"] = genderList; var querysearch = _structureManageService.GetAllFieldofStudy(userId, 1).Item3.AsEnumerable(); if (querysearch != null) { var fieldofStudies = (from f in querysearch select new DropDownModel { Value = f.Id.ToString(), Text = f.OrganizationStructureName.Name }).ToList(); var listFieldofStudy = new SelectList(fieldofStudies, "Value", "Text"); TempData["FieldofStudy"] = listFieldofStudy; } else { TempData["FieldofStudy"] = new List <DropDownModel>(); } return(View(commissionModel.Item3)); }