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

            db.ref_StrategicPriority.Remove(ref_StrategicPriority);
            db.SaveChanges();
            return(RedirectToAction("Create"));
        }
 public ActionResult Edit([Bind(Include = "StrategicPriorityID,StrategicPriorityNo,StrategicPriorityDescription")] ref_StrategicPriority ref_StrategicPriority)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ref_StrategicPriority).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Create"));
     }
     return(View(ref_StrategicPriority));
 }
        public ActionResult Create([Bind(Prefix = "Item1", Include = "StrategicPriorityID,StrategicPriorityNo,StrategicPriorityDescription")] ref_StrategicPriority ref_StrategicPriority)
        {
            if (ModelState.IsValid)
            {
                db.ref_StrategicPriority.Add(ref_StrategicPriority);
                db.SaveChanges();
                return(RedirectToAction("Create"));
            }

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

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