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));
 }
Example #3
0
 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));
 }
Example #4
0
 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));
 }
Example #6
0
 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));
 }