Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            NextInvestmentAccount nextinvestmentaccount = db.NextInvestmentAccounts.Find(id);

            db.NextInvestmentAccounts.Remove(nextinvestmentaccount);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        //
        // GET: /NextInvestmentAccount/Delete/5

        public ActionResult Delete(int id = 0)
        {
            NextInvestmentAccount nextinvestmentaccount = db.NextInvestmentAccounts.Find(id);

            if (nextinvestmentaccount == null)
            {
                return(HttpNotFound());
            }
            return(View(nextinvestmentaccount));
        }
Esempio n. 3
0
 public ActionResult Edit(NextInvestmentAccount nextinvestmentaccount)
 {
     if (ModelState.IsValid)
     {
         db.Entry(nextinvestmentaccount).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(nextinvestmentaccount));
 }
Esempio n. 4
0
        public ActionResult Create(NextInvestmentAccount nextinvestmentaccount)
        {
            if (ModelState.IsValid)
            {
                db.NextInvestmentAccounts.Add(nextinvestmentaccount);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nextinvestmentaccount));
        }
        public ActionResult Create(NextInvestmentAccount nextinvestmentaccount)
        {
            if (ModelState.IsValid)
            {
                db.NextInvestmentAccounts.Add(nextinvestmentaccount);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(nextinvestmentaccount);
        }
Esempio n. 6
0
        //
        // GET: /NextInvestmentAccount/

        public ActionResult Index()
        {
            return(View(NextInvestmentAccount.GetInstance()));
        }
 public ActionResult Edit(NextInvestmentAccount nextinvestmentaccount)
 {
     if (ModelState.IsValid)
     {
         db.Entry(nextinvestmentaccount).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(nextinvestmentaccount);
 }
Esempio n. 8
0
        //
        // GET: /NextInvestmentAccount/

        public ActionResult Index()
        {
            //Returns the nextInvestmentAccount instance.
            return(View(NextInvestmentAccount.GetInstance()));
        }