public ActionResult DeleteConfirmed(int id)
        {
            Classifications classifications = db.Classifications.Find(id);

            db.Classifications.Remove(classifications);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ClassificationId,ClassificationCode,Name")] Classifications classifications)
 {
     if (ModelState.IsValid)
     {
         db.Entry(classifications).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(classifications));
 }
        public ActionResult Create([Bind(Include = "ClassificationId,ClassificationCode,Name")] Classifications classifications)
        {
            if (ModelState.IsValid)
            {
                db.Classifications.Add(classifications);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(classifications));
        }
        // GET: Classifications/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Classifications classifications = db.Classifications.Find(id);

            if (classifications == null)
            {
                return(HttpNotFound());
            }
            return(View(classifications));
        }