Exemplo n.º 1
0
        public ActionResult RegistrationForm()
        {
            //var files = objData.GetFiles();
            var files = DataClasses.GetFiles();

            return(View(files));
        }
Exemplo n.º 2
0
        public FileResult Download(string id)
        {
            int fid = Convert.ToInt32(id);
            //var files = objData.GetFiles();
            var    files    = DataClasses.GetFiles();
            string filename = (from f in files
                               where f.FileId == fid
                               select f.FilePath).First();
            string contentType  = "application/pdf";
            string documentName = (from t in files
                                   where t.FileId == fid
                                   select t.FileName).First();

            return(File(filename, contentType, String.Format("{0}.pdf", documentName)));
        }
Exemplo n.º 3
0
        //
        // GET: /Reports/

        public ActionResult Index()
        {
            var files = objData.GetFiles();

            return(View(files));
        }
Exemplo n.º 4
0
        public ActionResult ImportantDocuments()
        {
            var files = DataClasses.GetFiles();

            return(PartialView(files));
        }