public ResponseModel GetLedgerData(int parentId) { var data = (from p in _db.spGeneralLedgerReport(parentId) select new { Name = p.Name, Debit = p.Debit, Credit = p.Credit, OpeningAmount = 0, ClosingAmount = 0 }).ToList(); return(_aModel.Respons(data)); }