Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            whatch_seasons whatch_seasons = db.whatch_seasons.Find(id);

            db.whatch_seasons.Remove(whatch_seasons);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "id_ws,wotch,id_user,id_anime,id_serii")] whatch_seasons whatch_seasons)
 {
     if (ModelState.IsValid)
     {
         db.Entry(whatch_seasons).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.id_serii = new SelectList(db.seriis, "id_serii", "link", whatch_seasons.id_serii);
     ViewBag.id_user  = new SelectList(db.users_anime, "id_user", "id_user", whatch_seasons.id_user);
     return(View(whatch_seasons));
 }
Ejemplo n.º 3
0
        // GET: whatch_seasons/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            whatch_seasons whatch_seasons = db.whatch_seasons.Find(id);

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

            if (whatch_seasons == null)
            {
                return(HttpNotFound());
            }
            ViewBag.id_serii = new SelectList(db.seriis, "id_serii", "link", whatch_seasons.id_serii);
            ViewBag.id_user  = new SelectList(db.users_anime, "id_user", "id_user", whatch_seasons.id_user);
            return(View(whatch_seasons));
        }