public ActionResult DeleteConfirmed(string id)
        {
            TransactionExperienceAchievement transactionExperienceAchievement = db.TransactionExperienceAchievements.Find(id);

            db.TransactionExperienceAchievements.Remove(transactionExperienceAchievement);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,OwnerId,ExperienceId,AchievementId,AchievementTitle,AchievementDescription,AchievementSequence,StartDate,EndDate")] TransactionExperienceAchievement transactionExperienceAchievement)
 {
     if (ModelState.IsValid)
     {
         db.Entry(transactionExperienceAchievement).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.OwnerId = new SelectList(db.TransactionExperienceTimelines, "OwnerId", "ExperienceType", transactionExperienceAchievement.OwnerId);
     return(View(transactionExperienceAchievement));
 }
        // GET: TransactionExperienceAchievements/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TransactionExperienceAchievement transactionExperienceAchievement = db.TransactionExperienceAchievements.Find(id);

            if (transactionExperienceAchievement == null)
            {
                return(HttpNotFound());
            }
            return(View(transactionExperienceAchievement));
        }
        // GET: TransactionExperienceAchievements/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TransactionExperienceAchievement transactionExperienceAchievement = db.TransactionExperienceAchievements.Find(id);

            if (transactionExperienceAchievement == null)
            {
                return(HttpNotFound());
            }
            ViewBag.OwnerId = new SelectList(db.TransactionExperienceTimelines, "OwnerId", "ExperienceType", transactionExperienceAchievement.OwnerId);
            return(View(transactionExperienceAchievement));
        }