public ActionResult Edit([Bind(Include = "EmergencyId,Date,Title,Article,KeywordOne,KeywordTwo,KeywordThree")] EmergencyModels emergency) { if (ModelState.IsValid) { db.Entry(emergency).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(emergency)); }
public ActionResult Update([Bind(Include = "ServiceTitle,ServiceCategory")] ServiceModel services) { if (ModelState.IsValid) { db.Entry(services).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(services)); }