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