public FileResult DownloadFile(int id) { var contents = myDal.GetFile(id); string fileName = myDal.GetFile(id).FileName.Trim(); return(File(contents.File, "txt", fileName)); }
public ActionResult FileDetail(int id) { var model = myDal.GetFile(id); return(View(model)); }