public ActionResult Create(EmployeeSkill employeeskills)
        {
            if (ModelState.IsValid)
            {
                db.EmployeeSkills.Add(employeeskills);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.EmpId = new SelectList(db.Employees, "EmpId", "Name", employeeskills.EmpId);
            ViewBag.SkillId = new SelectList(db.Skills, "SkillId", "Name", employeeskills.SkillId);
            return View(employeeskills);
        }
 public ActionResult Edit(EmployeeSkill employeeskills)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employeeskills).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.EmpId = new SelectList(db.Employees, "EmpId", "Name", employeeskills.EmpId);
     ViewBag.SkillId = new SelectList(db.Skills, "SkillId", "Name", employeeskills.SkillId);
     return View(employeeskills);
 }