public ActionResult Edit([Bind(Include = "PayeeID,PayeeName,Address,City,State,PostCode,Phone,ModifyDate")] Payee payee) { if (Session["Email"] != null) { if (ModelState.IsValid) { db.Entry(payee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(payee)); } else { return(RedirectToAction("LogIn", "Registration")); } }
public ActionResult Edit([Bind(Include = "Transaction_ID,DateofTransaction,TypeofTransaction,Account_No,Amount")] Transactions_174797_Project transactions_174797_Project) { if (Session["Email"] != null) { if (ModelState.IsValid) { db.Entry(transactions_174797_Project).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Account_No = new SelectList(db.Account_Master_174797_Project, "Account_No", "Account_Type", transactions_174797_Project.Account_No); return(View(transactions_174797_Project)); } else { return(RedirectToAction("LogIn", "Registration")); } }
public ActionResult Edit([Bind(Include = "Check_ID,Account_no,phoneno,address")] Check_174797_Project check_174797_Project) { if (Session["Email"] != null) { if (ModelState.IsValid) { db.Entry(check_174797_Project).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Account_no = new SelectList(db.Account_Master_174797_Project, "Account_No", "Account_Type", check_174797_Project.Account_no); return(View(check_174797_Project)); } else { return(RedirectToAction("LogIn", "Registration")); } }
public ActionResult Edit([Bind(Include = "BillPayID,Account_No,PayeeID,Amount,ScheduleDate,Period,ModifyDate")] BillPay billPay) { if (Session["Email"] != null) { if (ModelState.IsValid) { db.Entry(billPay).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Account_No = new SelectList(db.Account_Master_174797_Project, "Account_No", "Account_Type", billPay.Account_No); ViewBag.PayeeID = new SelectList(db.Payees, "PayeeID", "PayeeName", billPay.PayeeID); return(View(billPay)); } else { return(RedirectToAction("LogIn", "Registration")); } }