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