public void Update(tblWithdrawal op) { _db.Entry(op).State = EntityState.Modified; _db.Configuration.ValidateOnSaveEnabled = false; Save(); _db.Configuration.ValidateOnSaveEnabled = true; }
public void Delete(string Id) { tblWithdrawal op = _db.tblWithdrawals.Find(Id); _db.tblWithdrawals.Remove(op); Save(); }
public ActionResult Withdrawal(tblWithdrawal tblwith) { if (ModelState.IsValid) { objemp.WithdrawalBs.Insert(tblwith); TempData["msg"] = "Transaction Saved Successfully"; return(RedirectToAction("Withdrawal")); } return(View(tblwith)); }
public void Update(tblWithdrawal op) { objDb.Update(op); }
public void Insert(tblWithdrawal op) { objDb.Insert(op); }
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); }