public ActionResult DeleteConfirmed(string id)
        {
            CONCEPT cONCEPT = db.CONCEPTs.Find(id);

            db.CONCEPTs.Remove(cONCEPT);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ConceptID,TopicID,Concept_Name,Concept_Content,Concept_Weight")] CONCEPT cONCEPT)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cONCEPT).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.TopicID = new SelectList(db.TOPICs, "TopicID", "SubjectID", cONCEPT.TopicID);
     return(View(cONCEPT));
 }
        // GET: CONCEPTs/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CONCEPT cONCEPT = db.CONCEPTs.Find(id);

            if (cONCEPT == null)
            {
                return(HttpNotFound());
            }
            return(View(cONCEPT));
        }
        // GET: CONCEPTs/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CONCEPT cONCEPT = db.CONCEPTs.Find(id);

            if (cONCEPT == null)
            {
                return(HttpNotFound());
            }
            ViewBag.TopicID = new SelectList(db.TOPICs, "TopicID", "SubjectID", cONCEPT.TopicID);
            return(View(cONCEPT));
        }