Example #1
0
 public BankGuarantee GetBankGuarantee(BankGuarantee bankGuarantee)
 {
     return(_context.BankGuarantees.FirstOrDefault(m => m.CompanyYear == bankGuarantee.CompanyYear &&
                                                   m.VoucherNumber == bankGuarantee.VoucherNumber &&
                                                   m.CompanyID == bankGuarantee.CompanyID
                                                   ));
 }
Example #2
0
        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;
            }
        }
Example #3
0
 public bool updateBG(BankGuarantee bg)
 {
     return(this._mprDataAcess.updateBG(bg));
 }
Example #4
0
 public void Add(BankGuarantee ObjToSave)
 {
     _context.BankGuarantees.Add(ObjToSave);
 }
Example #5
0
 public IHttpActionResult updateBG(BankGuarantee bg)
 {
     return(Ok(this._mprBusenessAcess.updateBG(bg)));
 }