public ActionResult DeleteConfirmed(int id)
        {
            OrderAssayTest orderAssayTest = db.OrderAssayTests.Find(id);

            db.OrderAssayTests.Remove(orderAssayTest);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "OrderAssayID,TestID,TestConditionID,TestConclusive,StatusID")] OrderAssayTest orderAssayTest)
 {
     if (ModelState.IsValid)
     {
         db.Entry(orderAssayTest).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.OrderAssayID    = new SelectList(db.OrderAssays, "OrderAssayID", "OrderAssayID", orderAssayTest.OrderAssayID);
     ViewBag.StatusID        = new SelectList(db.Status, "StatusID", "StatusDesc", orderAssayTest.StatusID);
     ViewBag.TestID          = new SelectList(db.Tests, "TestID", "TestName", orderAssayTest.TestID);
     ViewBag.TestConditionID = new SelectList(db.TestConditions, "TestConditionID", "TestConditionDesc", orderAssayTest.TestConditionID);
     return(View(orderAssayTest));
 }
        // GET: OrderAssayTests1/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            OrderAssayTest orderAssayTest = db.OrderAssayTests.Find(id);

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

            if (orderAssayTest == null)
            {
                return(HttpNotFound());
            }
            ViewBag.OrderAssayID    = new SelectList(db.OrderAssays, "OrderAssayID", "OrderAssayID", orderAssayTest.OrderAssayID);
            ViewBag.StatusID        = new SelectList(db.Status, "StatusID", "StatusDesc", orderAssayTest.StatusID);
            ViewBag.TestID          = new SelectList(db.Tests, "TestID", "TestName", orderAssayTest.TestID);
            ViewBag.TestConditionID = new SelectList(db.TestConditions, "TestConditionID", "TestConditionDesc", orderAssayTest.TestConditionID);
            return(View(orderAssayTest));
        }