The method is UpSert
Your database has an object, stored procedure in SQLServer case, that receives all the parameters for a single row of data for that table.
The first thing you do is attempt an update of that row. If nothing is updated you then do an insert of those same params.
I have been doing this practice for 1-2 years now and just heard the catchy name for it.
I will also throw back the ID for the new record as an output param.