Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CreateOrderInternal createOrderInternal = db.CreateOrderInternals.Find(id);

            db.CreateOrderInternals.Remove(createOrderInternal);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "id,OrderID,PatientID,OrderingProvider,Notes,Diagnoses,Lab,Type,ResponsibleOrder,Stat")] CreateOrderInternal createOrderInternal)
 {
     if (ModelState.IsValid)
     {
         db.Entry(createOrderInternal).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.PatientID = new SelectList(db.Patients, "PatientID", "FirstName", createOrderInternal.PatientID);
     return(View(createOrderInternal));
 }
Beispiel #3
0
        // GET: CreateOrderInternals/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CreateOrderInternal createOrderInternal = db.CreateOrderInternals.Find(id);

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

            if (createOrderInternal == null)
            {
                return(HttpNotFound());
            }
            ViewBag.PatientID = new SelectList(db.Patients, "PatientID", "FirstName", createOrderInternal.PatientID);
            return(View(createOrderInternal));
        }