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; } }
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; } }
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; } }