public ActionResult Create(EM_JobPostings em_jobpostings) { if (ModelState.IsValid) { db.EM_JobPostings.Add(em_jobpostings); db.SaveChanges(); return RedirectToAction("Index"); } return View(em_jobpostings); }
public ActionResult Edit(EM_JobPostings em_jobpostings) { if (ModelState.IsValid) { db.Entry(em_jobpostings).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(em_jobpostings); }