public ActionResult DeleteConfirmed(int id)
        {
            IRAAccount iRAAccount = db.IRAAccounts.Find(id);

            db.IRAAccounts.Remove(iRAAccount);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "IRAAccountID,AccountNumber,AccountBalance,AccountName")] IRAAccount iRAAccount)
 {
     if (ModelState.IsValid)
     {
         db.Entry(iRAAccount).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(iRAAccount));
 }
        public ActionResult Create([Bind(Include = "IRAAccountID,AccountNumber,AccountBalance,AccountName")] IRAAccount iRAAccount)
        {
            if (ModelState.IsValid)
            {
                db.IRAAccounts.Add(iRAAccount);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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