public string GetLedgerAccountnature(int LedgerAccountId) { return((from L in _LedgerAccountRepository.Instance join Lg in _unitOfWork.Repository <LedgerAccountGroup>().Instance on L.LedgerAccountGroupId equals Lg.LedgerAccountGroupId into LedgerAccountGroupTable from LedgerAccountGroupTab in LedgerAccountGroupTable.DefaultIfEmpty() where L.LedgerAccountId == LedgerAccountId select new { LedgerAccountNature = LedgerAccountGroupTab.LedgerAccountNature }).FirstOrDefault().LedgerAccountNature); }
public string GetLedgerAccountnature(int LedgerAccountId) { return((from L in db.LedgerAccount join Lg in db.LedgerAccountGroup on L.LedgerAccountGroupId equals Lg.LedgerAccountGroupId into LedgerAccountGroupTable from LedgerAccountGroupTab in LedgerAccountGroupTable.DefaultIfEmpty() where L.LedgerAccountId == LedgerAccountId select new { LedgerAccountNature = LedgerAccountGroupTab.LedgerAccountNature }).FirstOrDefault().LedgerAccountNature); }