Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            TrialLateDevelopmentModels trialLateDevelopmentModels = db.TrialLateDevelopmentModels.Find(id);

            db.TrialLateDevelopmentModels.Remove(trialLateDevelopmentModels);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "Id,TrialId,ClinicalTrialsGovRef,LocalCC,SponsorGreenLight,LocalSiteInitiation,TargetFpfvDate,MultiSiteInitiation")] TrialLateDevelopmentModels trialLateDevelopmentModels)
 {
     if (ModelState.IsValid)
     {
         db.Entry(trialLateDevelopmentModels).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.TrialId = new SelectList(db.TrialFeasibilityModels, "Id", "ShortName", trialLateDevelopmentModels.TrialId);
     return(View(trialLateDevelopmentModels));
 }
Beispiel #3
0
        public ActionResult Create([Bind(Include = "Id,TrialId,ClinicalTrialsGovRef,LocalCC,SponsorGreenLight,SiteInitiationVisit,LocalSiteActivationDate")] TrialLateDevelopmentModels trialLateDevelopmentModels)
        {
            if (ModelState.IsValid)
            {
                db.TrialLateDevelopmentModels.Add(trialLateDevelopmentModels);
                db.SaveChanges();
                return(RedirectToAction("Edit", "TrialFeasibility", new { Id = trialLateDevelopmentModels.TrialId }));
            }

            ViewBag.TrialId = new SelectList(db.TrialFeasibilityModels, "Id", "ShortName", trialLateDevelopmentModels.TrialId);
            return(View(trialLateDevelopmentModels));
        }
Beispiel #4
0
        // GET: TrialLateDevelopment/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TrialLateDevelopmentModels trialLateDevelopmentModels = db.TrialLateDevelopmentModels.Find(id);

            if (trialLateDevelopmentModels == null)
            {
                return(HttpNotFound());
            }
            return(View(trialLateDevelopmentModels));
        }
Beispiel #5
0
        // GET: TrialLateDevelopment/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TrialLateDevelopmentModels trialLateDevelopmentModels = db.TrialLateDevelopmentModels.Find(id);

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