// GET: File public ActionResult Index(int id) { var fileToRetrieve = _fileAppService.ObterPorId(id); return(File(fileToRetrieve.Content, fileToRetrieve.ContentType)); }