This web site illustrates how to use FileContentResult via File method on the controller. It also demonstrates how to write and register a custom FileSender middleware.
FileContentResult
File
FileSender