Exemple #1
0
 public IEnumerable <GITransaction> GetAll(bool eagerLoading)
 {
     if (eagerLoading)
     {
         return(giTrnxRepository.GetAll(eagerLoading));
     }
     else
     {
         return(giTrnxRepository.GetAll(false));
     }
 }
Exemple #2
0
        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);
        }