public ActionResult Edit([Bind(Include = "PlaceId,City")] InfecPlaces infecPlaces) { if (ModelState.IsValid) { db.Entry(infecPlaces).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(infecPlaces)); }
public ActionResult Edit([Bind(Include = "IsolatedId,PlaceOfIsolation")] Isolated isolated) { if (ModelState.IsValid) { db.Entry(isolated).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(isolated)); }
public ActionResult Edit([Bind(Include = "HealthyId")] Healty healty) { if (ModelState.IsValid) { db.Entry(healty).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(healty)); }
public ActionResult Edit([Bind(Include = "SickId,Place")] Sick sick) { if (ModelState.IsValid) { db.Entry(sick).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sick)); }
public ActionResult Edit([Bind(Include = "RecoveringId,PeoplesId")] Recovering recovering) { if (ModelState.IsValid) { db.Entry(recovering).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(recovering)); }
public ActionResult Edit([Bind(Include = "PeoplesId,FirstName,LastName,Identification,Password,PhoneNumber,Address,Email,City,BirthDate,IsAdmin")] Peoples peoples) //Password field removed { if (ModelState.IsValid) { db.Entry(peoples).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(peoples)); }