Needs
save name in employee table and save all courses
in employee courses table when click submit button in edit [HTTPPOST]
Problem summary
submit button save changes only and delete data exist before
Problem details
when click submit button in edit post .courses will save
what i added or selected courses before click submit it will save
but courses that employee have before will delete
Example
1- i add employee name MEDO have course c++
2-in edit view it show c++
3-if i add python in edit view then click submit it must have two courses
c++ and python
4- it show to me python only when open edit for this employee again
it save courses selected but courses exist before deleted
Image for problem
image found below show all details
SAVE all courses in employeecourse table
Code