/// <summary> /// Update a course /// </summary> /// <param name="course">course object</param> public void EditCourse(COURSE course) { // Change the state of the course object to modified, so it will be update in database db.Entry(course).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// How to Archive a employee? /// </summary> public void Editprofile(EMPLOYEE employee) { db.Entry(employee).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Edit an office assignment /// </summary> /// <param name="office">office object</param> public void Editoffice(OFFICE office) { //Change the state of the office object to modified, so it will be update in database db.Entry(office).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a faculty /// </summary> /// <param name="faculty">faculty object</param> public void EditFaculty(FACULTY faculty) { // Change the state of the faculty object to modified, so it will be update in database db.Entry(faculty).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a school /// </summary> /// <param name="school">school object</param> public void EditSchool(SCHOOL school) { // Change the state of the school object to modified, so it will be update in database db.Entry(school).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a TA /// </summary> /// <param name="TA">TA object</param> public void EditTA(TEACHER_ASSISTANT ta) { // Change the state of the TA object to modified, so it will be update in database db.Entry(ta).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Edit an request /// </summary> /// <param name="request">request object</param> public void EditRequest(REQUEST request) { //Change the state of the request object to modified, so it will be update in database db.Entry(request).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a workload /// </summary> /// <param name="school">workload object</param> public void EditWorkload(WORKLOAD workload) { // Change the state of the workload object to modified, so it will be update in database db.Entry(workload).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a position /// </summary> /// <param name="position">position object</param> public void EditPosition(POSITION position) { // Change the state of the school object to modified, so it will be update in database db.Entry(position).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Update a department /// </summary> /// <param name="department">department object</param> public void EditDepartment(DEPARTMENT department) { // Change the state of the department object to modified, so it will be update in database db.Entry(department).State = EntityState.Modified; db.SaveChanges(); }
/// <summary> /// Edit an resource /// </summary> /// <param name="resource">resource object</param> public void EditResource(RESOURCE resource) { //Change the state of the resource object to modified, so it will be update in database db.Entry(resource).State = EntityState.Modified; db.SaveChanges(); }