Example #1
0
        public ActionResult DeleteConfirmed(short id)
        {
            T_BankMyAcount t_bankmyacount = db.T_BankMyAcount.Find(id);

            db.T_BankMyAcount.Remove(t_bankmyacount);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
        //
        // GET: /Management/MyBank/Delete/5

        public ActionResult Delete(short id = 0)
        {
            T_BankMyAcount t_bankmyacount = db.T_BankMyAcount.Find(id);

            if (t_bankmyacount == null)
            {
                return(HttpNotFound());
            }
            return(View(t_bankmyacount));
        }
Example #3
0
 public ActionResult Edit(T_BankMyAcount t_bankmyacount)
 {
     if (ModelState.IsValid)
     {
         db.Entry(t_bankmyacount).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(t_bankmyacount));
 }
Example #4
0
        public ActionResult Create(T_BankMyAcount t_bankmyacount)
        {
            if (ModelState.IsValid)
            {
                db.T_BankMyAcount.Add(t_bankmyacount);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(t_bankmyacount));
        }