Пример #1
0
        public virtual ActionResult GetFeed(long feedId)
        {
            var file     = FeedViewModel.GetFilepath(Db, feedId);
            var filename = Path.GetFileName(file);

            if (System.IO.File.Exists(file))
            {
                return(File(file, FileHelper.GetMimeTypeByExt(Path.GetExtension(filename))));
            }
            return(new HttpNotFoundResult());
        }