public async Task <ActionResult> DeleteConfirmed(int id)
        {
            ICD_10_CM_Category iCD_10_CM_Category = await db.ICD_10_CM_Category.FindAsync(id);

            db.ICD_10_CM_Category.Remove(iCD_10_CM_Category);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "ID,ICD_10_CM_DiagnosisSectionCodeID,Category,Description")] ICD_10_CM_Category iCD_10_CM_Category)
        {
            if (ModelState.IsValid)
            {
                db.Entry(iCD_10_CM_Category).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.ICD_10_CM_DiagnosisSectionCodeID = new SelectList(db.ICD_10_CM_DiagnosisSectionCode, "ID", "DiagnosisSectionCode", iCD_10_CM_Category.ICD_10_CM_DiagnosisSectionCodeID);
            return(View(iCD_10_CM_Category));
        }
        // GET: ICD_10_CM_Category/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ICD_10_CM_Category iCD_10_CM_Category = await db.ICD_10_CM_Category.FindAsync(id);

            if (iCD_10_CM_Category == null)
            {
                return(HttpNotFound());
            }
            return(View(iCD_10_CM_Category));
        }
        // GET: ICD_10_CM_Category/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ICD_10_CM_Category iCD_10_CM_Category = await db.ICD_10_CM_Category.FindAsync(id);

            if (iCD_10_CM_Category == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ICD_10_CM_DiagnosisSectionCodeID = new SelectList(db.ICD_10_CM_DiagnosisSectionCode, "ID", "DiagnosisSectionCode", iCD_10_CM_Category.ICD_10_CM_DiagnosisSectionCodeID);
            return(View(iCD_10_CM_Category));
        }