public ActionResult Edit(CA_PersonalData ca_personaldata)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ca_personaldata).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(ca_personaldata);
 }
        public ActionResult Create(CA_PersonalData ca_personaldata)
        {
            ca_personaldata.CandidateID = (int)Session["CandidateID"];
            if (ModelState.IsValid)
            {
                db.CA_PersonalData.Add(ca_personaldata);
                db.SaveChanges();
                return RedirectToAction("Index");
            }
            ViewBag.MotherTongue = new SelectList(db.MS_LanguageMaster, "LanguageID", "Language", ca_personaldata.MotherTongue);

            return View(ca_personaldata);
        }
        public ActionResult RegisterCandidate(CA_PersonalData ca_personaldata)
        {
            Team2_FRESHERSPOOLEntities db = new Team2_FRESHERSPOOLEntities();
            if (ModelState.IsValid)
            {
                db.CA_PersonalData.Add(ca_personaldata);
                db.SaveChanges();
            }

            return View(ca_personaldata);
        }