示例#1
0
 public void Update(tblWithdrawal op)
 {
     _db.Entry(op).State = EntityState.Modified;
     _db.Configuration.ValidateOnSaveEnabled = false;
     Save();
     _db.Configuration.ValidateOnSaveEnabled = true;
 }
示例#2
0
        public void Delete(string Id)
        {
            tblWithdrawal op = _db.tblWithdrawals.Find(Id);

            _db.tblWithdrawals.Remove(op);
            Save();
        }
示例#3
0
 public ActionResult Withdrawal(tblWithdrawal tblwith)
 {
     if (ModelState.IsValid)
     {
         objemp.WithdrawalBs.Insert(tblwith);
         TempData["msg"] = "Transaction Saved Successfully";
         return(RedirectToAction("Withdrawal"));
     }
     return(View(tblwith));
 }
示例#4
0
 public void Update(tblWithdrawal op)
 {
     objDb.Update(op);
 }
示例#5
0
 public void Insert(tblWithdrawal op)
 {
     objDb.Insert(op);
 }
示例#6
0
 public void Insert(tblWithdrawal op)
 {
     _db.spInsertWithdrawal(op.branchName, op.transDate, op.actNo, op.actName, op.actType, op.chqNo, op.chqDate, op.withAmount, op.paidTo, op.currentBalance);
 }