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

            db.Assay_Result.Remove(assay_Result);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "assayResultsId,assayTestFile,assayTestDescriptive,completeDate,assayTestId")] Assay_Result assay_Result)
 {
     if (ModelState.IsValid)
     {
         db.Entry(assay_Result).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.assayTestId = new SelectList(db.Assay_Test, "assayTestId", "comments", assay_Result.assayTestId);
     return(View(assay_Result));
 }
Beispiel #3
0
        // GET: Assay_Result/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Assay_Result assay_Result = db.Assay_Result.Find(id);

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

            if (assay_Result == null)
            {
                return(HttpNotFound());
            }
            ViewBag.assayTestId = new SelectList(db.Assay_Test, "assayTestId", "comments", assay_Result.assayTestId);
            return(View(assay_Result));
        }