public BankGuarantee GetBankGuarantee(BankGuarantee bankGuarantee) { return(_context.BankGuarantees.FirstOrDefault(m => m.CompanyYear == bankGuarantee.CompanyYear && m.VoucherNumber == bankGuarantee.VoucherNumber && m.CompanyID == bankGuarantee.CompanyID )); }
public void Update(BankGuarantee ObjToSave) { var ObjToUpdate = _context.BankGuarantees.FirstOrDefault (m => m.CompanyID == ObjToSave.CompanyID && m.CompanyTransactionKindNo == ObjToSave.CompanyTransactionKindNo && m.CompanyYear == ObjToSave.CompanyYear && m.VoucherNumber == ObjToSave.VoucherNumber); if (ObjToUpdate != null) { ObjToUpdate.DepositValue = ObjToSave.DepositValue; ObjToUpdate.DueDate = ObjToSave.DueDate; ObjToUpdate.ExpensesAmount = ObjToSave.ExpensesAmount; ObjToUpdate.OrderNo = ObjToSave.OrderNo; ObjToUpdate.TheBeneficiary = ObjToSave.TheBeneficiary; ObjToUpdate.WarrantyAmount = ObjToSave.WarrantyAmount; ObjToUpdate.WarrantyNumber = ObjToSave.WarrantyNumber; } }
public bool updateBG(BankGuarantee bg) { return(this._mprDataAcess.updateBG(bg)); }
public void Add(BankGuarantee ObjToSave) { _context.BankGuarantees.Add(ObjToSave); }
public IHttpActionResult updateBG(BankGuarantee bg) { return(Ok(this._mprBusenessAcess.updateBG(bg))); }