Please follow the below steps to create the file transferrable Web API service.
- Download the attached project.
- Open Visual Studio and create New Web API project.
- Create Book folder at root level in the project.
- Add any sample pdf, word, excel, zip (name them as sample) files into it.
For More Information Please Refer: https://www.c-sharpcorner.com/article/sending-files-from-web-api/