Exemple #1
0
 public void Edit(hospitals _hospital)
 {
     db.Entry(_hospital).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemple #2
0
 public ActionResult EditHealthFacility(hospitals _hospitals)
 {
     hospitals.Edit(_hospitals);
     return(RedirectToAction("HealthFacility"));
 }
Exemple #3
0
 public void Add(hospitals _hospital)
 {
     db.hospitals.Add(_hospital);
     db.SaveChanges();
 }