public ActionResult Upload(UploadViewModel avm_upload)
        {
            foreach(string file in Request.Files)
            {
                HttpPostedFileBase hpf = Request.Files[file] as HttpPostedFileBase;
                if (hpf.ContentLength > 0)
                {
                    var fileName = Path.GetFileName(hpf.FileName);
                    var path = Path.Combine(Server.MapPath("~/App_Data/uploads/"), fileName);

                    //copy path url to db
                    PDFurlModel _upload = new PDFurlModel() { Url = path, Name = "", ApplicationID = 1};
                    db.PDFurlModel.Add(_upload);
                    hpf.SaveAs(path);
                }
            }
            db.SaveChanges();
            return RedirectToAction("Index");
        }
 //upload
 public ActionResult Upload(int id)
 {
     UploadViewModel avm_upload = new UploadViewModel();
     avm_upload.Application = db.Application.Find(id);
     avm_upload.PdfUrl = new PDFurlModel();
     avm_upload.ApplicationID = id;
     return View(avm_upload);
 }