コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            TrialCloseDownModels trialCloseDownModels = db.TrialCloseDownModels.Find(id);

            db.TrialCloseDownModels.Remove(trialCloseDownModels);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 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));
 }
コード例 #3
0
        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));
        }
コード例 #4
0
        // 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));
        }
コード例 #5
0
        // 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));
        }