예제 #1
0
        public FileResult DownloadFile(int id)
        {
            var    contents = myDal.GetFile(id);
            string fileName = myDal.GetFile(id).FileName.Trim();

            return(File(contents.File, "txt", fileName));
        }
예제 #2
0
        public ActionResult FileDetail(int id)
        {
            var model = myDal.GetFile(id);

            return(View(model));
        }