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

            db.ActiveSStandings.Remove(activeSStanding);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "id,ActiveSStatusID,ActiveSSType")] ActiveSStanding activeSStanding)
 {
     if (ModelState.IsValid)
     {
         db.Entry(activeSStanding).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(activeSStanding));
 }
Exemple #3
0
        public ActionResult Create([Bind(Include = "id,ActiveSStatusID,ActiveSSType")] ActiveSStanding activeSStanding)
        {
            if (ModelState.IsValid)
            {
                db.ActiveSStandings.Add(activeSStanding);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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