Example #1
0
 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;
 }
Example #2
0
        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);
        }
Example #3
0
 public bool InsertLedgerBookRow(VoucherBase record)
 {
     return InsertLedgerRecord(record) > 0;
 }
Example #4
0
 public bool InsertLedgerBookRow(VoucherBase record)
 {
     return(InsertLedgerRecord(record) > 0);
 }