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