public ActionResult Create(ApplicantProfileThemeLibrary applicantprofilethemelibrary)
 {
     if (ModelState.IsValid) {
         applicantprofilethemelibraryRepository.InsertOrUpdate(applicantprofilethemelibrary);
         applicantprofilethemelibraryRepository.Save();
         return RedirectToAction("Index");
     } else {
         return View(applicantprofilethemelibrary);
     }
 }
 public ViewResult Search(ApplicantProfileThemeLibrary searchApplicantProfileThemeLibrary)
 {
     if(searchApplicantProfileThemeLibrary!=null)
     {
                     }
                 return View("Index",applicantprofilethemelibraryRepository.All);
 }
 public ActionResult Create()
 {
     ApplicantProfileThemeLibrary applicantprofilethemelibrary = new ApplicantProfileThemeLibrary();
     return View(applicantprofilethemelibrary);
 }
 public void InsertOrUpdate(ApplicantProfileThemeLibrary applicantprofilethemelibrary)
 {
     if (applicantprofilethemelibrary.ApplicantProfileThemeLibraryID == default(int)) {
         // New entity
         context.ApplicantProfileThemeLibrary.Add(applicantprofilethemelibrary);
     } else {
         // Existing entity
         context.Entry(applicantprofilethemelibrary).State = EntityState.Modified;
     }
 }