public ActionResult ConfigureParameterCategories() { try { ConfigureParameterCategory configParametercategory = new ConfigureParameterCategory(); string[] role = Roles.GetRolesForUser(Membership.GetUser().UserName); configParametercategory.SearchedUserDetails = new SearchedUserDetails(); CommonMethodsDAL Commondal = new CommonMethodsDAL(); configParametercategory.SearchedUserDetails.UserRole = Commondal.GetMaxRoleForUser(role); PersonalDetailsDAL personalDAL = new PersonalDetailsDAL(); EmployeeDAL dal = new EmployeeDAL(); int employeeID = dal.GetEmployeeID(Membership.GetUser().UserName); configParametercategory.SearchedUserDetails.EmployeeId = employeeID; configParametercategory.SearchedUserDetails.EmployeeCode = personalDAL.getEmployeeCode(employeeID); ConfigurationDAL configDAL = new ConfigurationDAL(); List <Parametercompetency> parametercompetency = configDAL.GetParameterCategories(); configParametercategory.RecordsCount = parametercompetency.Count; configParametercategory.Parametercompetencys = parametercompetency; return(PartialView("_ConfigureParameterCompetency", configParametercategory)); } catch { throw; } }