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