public ActionResult RegistrationForm() { //var files = objData.GetFiles(); var files = DataClasses.GetFiles(); return(View(files)); }
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))); }
// // GET: /Reports/ public ActionResult Index() { var files = objData.GetFiles(); return(View(files)); }
public ActionResult ImportantDocuments() { var files = DataClasses.GetFiles(); return(PartialView(files)); }