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")); }
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)); }
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)); }
// 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)); }
// 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)); }