Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            ref_StrategicPriorityClassification ref_StrategicPriorityClassification = db.ref_StrategicPriorityClassification.Find(id);

            db.ref_StrategicPriorityClassification.Remove(ref_StrategicPriorityClassification);
            db.SaveChanges();
            return(RedirectToAction("Create"));
        }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "StratPriorityClassID,StrategicPriorityClassification")] ref_StrategicPriorityClassification ref_StrategicPriorityClassification)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ref_StrategicPriorityClassification).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Create"));
     }
     return(View(ref_StrategicPriorityClassification));
 }
Exemple #3
0
        public ActionResult Create([Bind(Prefix = "Item1", Include = "StratPriorityClassID,StrategicPriorityClassification")] ref_StrategicPriorityClassification ref_StrategicPriorityClassification)
        {
            if (ModelState.IsValid)
            {
                db.ref_StrategicPriorityClassification.Add(ref_StrategicPriorityClassification);
                db.SaveChanges();
                return(RedirectToAction("Create"));
            }

            return(View(ref_StrategicPriorityClassification));
        }
Exemple #4
0
        // GET: PriorityClassification/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ref_StrategicPriorityClassification ref_StrategicPriorityClassification = db.ref_StrategicPriorityClassification.Find(id);

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