public ActionResult Create(ApplicantProfileTagLibrary applicantprofiletaglibrary) { if (ModelState.IsValid) { applicantprofiletaglibraryRepository.InsertOrUpdate(applicantprofiletaglibrary); applicantprofiletaglibraryRepository.Save(); return RedirectToAction("Index"); } else { return View(); } }
public void InsertOrUpdate(ApplicantProfileTagLibrary applicantprofiletaglibrary) { if (applicantprofiletaglibrary.ApplicantProfileTagLibraryID == default(int)) { // New entity context.ApplicantProfileTagLibrary.Add(applicantprofiletaglibrary); } else { // Existing entity context.Entry(applicantprofiletaglibrary).State = EntityState.Modified; } }
public ViewResult Search(ApplicantProfileTagLibrary searchApplicantProfileTagLibrary) { if(searchApplicantProfileTagLibrary!=null) { } return View("Index",applicantprofiletaglibraryRepository.All); }