public ActionResult DeleteConfirmed(int id)
        {
            AleMenachoFriend aleMenachoFriend = db.AleMenachoFriends.Find(id);

            db.AleMenachoFriends.Remove(aleMenachoFriend);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "FriendId,Name,Nickname,Birthday,Type")] AleMenachoFriend aleMenachoFriend)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aleMenachoFriend).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aleMenachoFriend));
 }
        public ActionResult Create([Bind(Include = "FriendId,Name,Nickname,Birthday,Type")] AleMenachoFriend aleMenachoFriend)
        {
            if (ModelState.IsValid)
            {
                db.AleMenachoFriends.Add(aleMenachoFriend);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(aleMenachoFriend));
        }
        // GET: AleMenachoFriends/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AleMenachoFriend aleMenachoFriend = db.AleMenachoFriends.Find(id);

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