示例#1
0
        public List <Teacher> GetAllAsync()
        {
            try
            {
                var results = _dbContext.ExecuteQuery(SP_GETTEACHER);

                if (results.IsSuccessfull)
                {
                    return(BuildResultSet(results.GetResults()));
                }

                throw new Exception(results.ToString());
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#2
0
        public List <ClassEntity> GetAllAsync()
        {
            var results = _dbContext.ExecuteQuery(SP_GETCLASS);

            try
            {
                if (results.IsSuccessfull)
                {
                    return(BuildResultSet(results.GetResults()));
                }

                throw new Exception(results.ToString());
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#3
0
        public List <Registration> GetAllAsync()
        {
            var results = _dbContext.ExecuteQuery(SP_GETREGISTRATIONS);

            try
            {
                if (results.IsSuccessfull)
                {
                    return(BuildResultSet(results.GetResults()));
                }

                throw new Exception(results.ToString());
            }
            catch (Exception)
            {
                throw;
            }
        }