Example #1
0
        // GET: EmoFaces/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            EmoFace emoFace = db.EmoFaces.Find(id);

            if (emoFace == null)
            {
                return(HttpNotFound());
            }
            return(View(emoFace));
        }
Example #2
0
        // GET: EmoFaces/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            EmoFace emoFace = db.EmoFaces.Find(id);

            if (emoFace == null)
            {
                return(HttpNotFound());
            }
            ViewBag.EmoPictureId = new SelectList(db.EmoPictures, "Id", "Nombre", emoFace.EmoPictureId);
            return(View(emoFace));
        }