Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            fundtransfer fundtransfer = db.fundtransfers.Find(id);

            db.fundtransfers.Remove(fundtransfer);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "FundTransferId,Debit_Amount,Credit_Amount,date,CustumerId")] fundtransfer fundtransfer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fundtransfer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CustumerId = new SelectList(db.customers, "Customer_Id", "FirstName", fundtransfer.CustumerId);
     return(View(fundtransfer));
 }
Beispiel #3
0
        // GET: fundtransfers/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            fundtransfer fundtransfer = db.fundtransfers.Find(id);

            if (fundtransfer == null)
            {
                return(HttpNotFound());
            }
            return(View(fundtransfer));
        }
Beispiel #4
0
        // GET: fundtransfers/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            fundtransfer fundtransfer = db.fundtransfers.Find(id);

            if (fundtransfer == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CustumerId = new SelectList(db.customers, "Customer_Id", "FirstName", fundtransfer.CustumerId);
            return(View(fundtransfer));
        }