public IEnumerable <GITransaction> GetAll(bool eagerLoading) { if (eagerLoading) { return(giTrnxRepository.GetAll(eagerLoading)); } else { return(giTrnxRepository.GetAll(false)); } }
public IEnumerable <GITransaction> GetUserGITrnx(long ID) { try { var trnx = giTrnxRepository.GetAll(true); if (trnx != null) { return(trnx.Where(u => u.CreatedBy == ID.ToString())); } } catch (Exception ex) { throw new Exception(ex.Message); } return(null); }