How can i upload a file into Sharepoint library, in ASP.NET MVC?

i have read a lot of questions about this but i am stil confused..
I made a powerapps project where i uploaded a file into sharepoint, that upload would create a folder with a text field that would be fullfilled in that form.. And inside the fields would be uploaded, if the the name was already a folder, he would just upload into the library!
How can i upload a file into Sharepoint library, in ASP.NET MVC?