/// <summary> /// Update a treatment /// </summary> /// <param name="treatment">treatment object</param> public void UpdateTreatment(Treatment treatment) { // Change the state of the treatment object to modified, so it will be update in database db.Entry(treatment).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a student /// </summary> /// <param name="student">student object</param> public void UpdateStudent(Student student) { // Change the state of the student object to modified, so it will be update in database db.Entry(student).State = EntityState.Modified; db.SaveChanges(); }
public void UpdateParent(Parent parent) { db.Entry(parent).State = EntityState.Modified; db.SaveChanges(); }
public void UpdateAddress(Address address) { db.Entry(address).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update an employee /// </summary> /// <param name="employee">employee object</param> public void UpdateEmployee(Employee employee) { // Change the state of the employee object to modified, so it will be update in database db.Entry(employee).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a class /// </summary> /// <param name="class">class object</param> public void UpdateClass(Class studentClass) { // Change the state of the employee object to modified, so it will be update in database db.Entry(studentClass).State = EntityState.Modified; db.SaveChanges(); }
public void UpdateFamilyDoctor(FamilyDoctor familyDoctor) { db.Entry(familyDoctor).State = EntityState.Modified; db.SaveChanges(); }
public void UpdateInventory(Inventory inventory) { db.Entry(inventory).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Edit an Appointment /// </summary> /// <param name="appointment">appointment object</param> public void UpdateAppointment(Appointment appointment) { // Change the state of the Appointment object to modified, so it will be updated in database db.Entry(appointment).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a visit /// </summary> /// <param name="visit">visit object</param> public void UpdateVisit(Visit visit) { // Change the state of the visit object to modified, so it will be update in database db.Entry(visit).State = EntityState.Modified; db.SaveChanges(); }