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

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

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

            if (ref_ClimateChangeTypology == null)
            {
                return(HttpNotFound());
            }
            return(View(ref_ClimateChangeTypology));
        }
Exemple #5
0
        // GET: CliimateChangeTypology/Edit/5
        public ActionResult Edit(int?id)
        {
            TypologyCodeDD();
            PriorityAreaDD();
            PriorityClassDD();
            PriorityGroupDD();
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ref_ClimateChangeTypology ref_ClimateChangeTypology = db.ref_ClimateChangeTypology.Find(id);

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