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

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

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

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