// GET: EmployeeDeveloperTechnicalSkill

        public ActionResult Index(int?hdnCount, int?userId)
        {
            ViewBag.showSignOutButton = true;
            hdnCount = hdnCount == null ? 0 : hdnCount;
            if (userId != null)
            {
                LoginUserId = userId ?? 0;
            }

            //if (employeeDeveloperTechnicalSkill?.employeeDeveloperSkillAndScales ==null)
            //{

            //}

            if (employeeDeveloperTechnicalSkill != null && employeeDeveloperTechnicalSkill.employeeDeveloperSkillAndScales == null)
            {
                employeeDeveloperTechnicalSkill = empReview.GetDeveloperTechnicalSKillAndScales();
            }
            if (hdnCount < employeeDeveloperTechnicalSkill.employeeDeveloperSkillAndScales.Count && !IsTechincalSkill)
            {
                var singleSkill = employeeDeveloperTechnicalSkill.employeeDeveloperSkillAndScales[hdnCount ?? 0];
                List <EmployeeDeveloperSkillAndScale> employeeSkillScale = new List <EmployeeDeveloperSkillAndScale>()
                {
                    new EmployeeDeveloperSkillAndScale {
                        developerSkill = singleSkill.developerSkill, developerSkillScales = singleSkill.developerSkillScales
                    }
                };
                employeeSkillResult.employeeDeveloperSkillAndScales = employeeSkillScale;
            }
            else
            {
                if (!IsTechincalSkill)
                {
                    hdnCount         = 0;
                    IsTechincalSkill = true;
                }
                if (hdnCount < employeeDeveloperTechnicalSkill.employeeTechnicalSkillAndScales.Count)
                {
                    var singleSkill = employeeDeveloperTechnicalSkill.employeeTechnicalSkillAndScales[hdnCount ?? 0];
                    List <EmployeeTechnicalSkillAndScale> employeeSkillScale = new List <EmployeeTechnicalSkillAndScale>()
                    {
                        new EmployeeTechnicalSkillAndScale {
                            technicalSkill = singleSkill.technicalSkill, technicalSkillScales = singleSkill.technicalSkillScales
                        }
                    };
                    employeeSkillResult.employeeTechnicalSkillAndScales = employeeSkillScale;
                }
            }

            if (employeeSkillResult.employeeTechnicalSkillAndScales.Count == 0 && employeeSkillResult.employeeDeveloperSkillAndScales.Count == 0)
            {
                return(RedirectToAction("DisplayDeveloperAndTechnicalSkill", new { userId = LoginUserId }));
            }

            ViewBag.Count = hdnCount + 1;


            return(View(employeeSkillResult));
        }