Hi,
You can write another procedure or you can can modify your existing one.
If you send ID null or some default value then that should insert and out the ID value
if you send ID( Not null or not some default value ) then you should update the row
by
update
SQL and put Id in where clause.