You have to use the C# code in your .net core code.
Once you read the posted file using ClosedXML library read the excel file.
By reading first row generate the table to create in database and the Datatable columns.
Then looping through other row cell value add the record to datatable and finally using SqlBulkCopy insert all the recor dto the database table.