public bool InsertLedgerBookRow(VoucherBase record, BLL.Model.Entity.FixedAsset fixedAsset) { int recordId = InsertLedgerRecord(record); if (recordId > 0) { FixedAsset dalFixedAsset = new FixedAsset { Name = fixedAsset.Name, DepreciationRate = fixedAsset.DepreciationRate, RecordID = recordId }; _db.AddToFixedAssets(dalFixedAsset); _db.SaveChanges(); return true; } return false; }
public bool InsertLedgerBookRow(VoucherBase record, BLL.Model.Entity.FixedAsset fixedAsset) { int recordId = InsertLedgerRecord(record); if (recordId > 0) { FixedAsset dalFixedAsset = new FixedAsset { Name = fixedAsset.Name, DepreciationRate = fixedAsset.DepreciationRate, RecordID = recordId }; _db.AddToFixedAssets(dalFixedAsset); _db.SaveChanges(); return(true); } return(false); }
public bool InsertLedgerBookRow(VoucherBase record) { return InsertLedgerRecord(record) > 0; }
public bool InsertLedgerBookRow(VoucherBase record) { return(InsertLedgerRecord(record) > 0); }