Exemplo n.º 1
0
 public IEnumerable <GRTransaction> GetAll(bool eagerLoading)
 {
     if (eagerLoading)
     {
         return(grTrnxRepository.GetAll(eagerLoading));
     }
     else
     {
         return(grTrnxRepository.GetAll(false));
     }
 }
Exemplo n.º 2
0
        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);
        }