public ActionResult DeleteConfirmed(int id)
        {
            TrialCloseDownModels trialCloseDownModels = db.TrialCloseDownModels.Find(id);

            db.TrialCloseDownModels.Remove(trialCloseDownModels);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,TrialId,ClinicalStudyReportDue,ClinicalStudyReportSubmitted,EudraCTUploadDue,EudraCTUpload,Archiving,ArchivingPeriod,Destruction")] TrialCloseDownModels trialCloseDownModels)
 {
     if (ModelState.IsValid)
     {
         db.Entry(trialCloseDownModels).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.TrialId = new SelectList(db.TrialFeasibilityModels, "Id", "ShortName", trialCloseDownModels.TrialId);
     return(View(trialCloseDownModels));
 }
        public ActionResult Create([Bind(Include = "Id,TrialId,ClinicalStudyReportDue,ClinicalStudyReportSubmitted,EudraCTUploadDue,EudraCTUpload,Archiving,ArchivingPeriod,Destruction")] TrialCloseDownModels trialCloseDownModels)
        {
            if (ModelState.IsValid)
            {
                db.TrialCloseDownModels.Add(trialCloseDownModels);
                db.SaveChanges();
                return(RedirectToAction("Edit", "TrialFeasibility", new { Id = trialCloseDownModels.TrialId }));
            }

            ViewBag.TrialId = new SelectList(db.TrialFeasibilityModels, "Id", "ShortName", trialCloseDownModels.TrialId);
            return(View(trialCloseDownModels));
        }
        // GET: TrialCloseDown/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TrialCloseDownModels trialCloseDownModels = db.TrialCloseDownModels.Find(id);

            if (trialCloseDownModels == null)
            {
                return(HttpNotFound());
            }
            return(View(trialCloseDownModels));
        }
        // GET: TrialCloseDown/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TrialCloseDownModels trialCloseDownModels = db.TrialCloseDownModels.Find(id);

            if (trialCloseDownModels == null)
            {
                return(HttpNotFound());
            }
            ViewBag.TrialId = new SelectList(db.TrialFeasibilityModels, "Id", "ShortName", trialCloseDownModels.TrialId);
            return(View(trialCloseDownModels));
        }