Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            MARINE_CLIMATE mARINE_CLIMATE = db.MARINE_CLIMATE.Find(id);

            db.MARINE_CLIMATE.Remove(mARINE_CLIMATE);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID_PK,TEXT")] MARINE_CLIMATE mARINE_CLIMATE)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mARINE_CLIMATE).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(mARINE_CLIMATE));
 }
Exemplo n.º 3
0
        public ActionResult Create([Bind(Include = "ID_PK,TEXT")] MARINE_CLIMATE mARINE_CLIMATE)
        {
            if (ModelState.IsValid)
            {
                db.MARINE_CLIMATE.Add(mARINE_CLIMATE);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(mARINE_CLIMATE));
        }
Exemplo n.º 4
0
        // GET: MARINE_CLIMATE/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MARINE_CLIMATE mARINE_CLIMATE = db.MARINE_CLIMATE.Find(id);

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