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")); }
// // 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)); }
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)); }
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)); }