Example #1
0
        public bool CheckNames()
        {
            CBNProfessionClient cbnpc = new CBNProfessionClient();

            List <CBNProfession> list = new List <CBNProfession>(cbnpc.GetAll());

            foreach (KeyValuePair <string, string> kv in idmap)
            {
                //find profession
                CBNProfession hittest = list.Find(x => x.Profession == kv.Key);
                if (hittest == null)
                {
                    throw new Exception(kv.Key + " does not exist");
                }
            }
            return(true);
        }
        public string ExportJSONP()
        {
            CBNProfessionClient  pc          = new CBNProfessionClient();
            List <CBNProfession> professions = new List <CBNProfession>(pc.GetAll());

            //ExportProfessionsWithAttributesForSkillTest(professions);
            //ExportProfessionBranches(professions);
            //ExportProfessionsByBranch(professions);

            //ExportProfessionsByAttribute(professions);

            //ExportSchoolsByProgramId(professions);

            QuestionClient  qc        = new QuestionClient();
            List <Question> questions = new List <Question>(qc.GetAllByPartition("skillcowtestshort").OrderBy(x => x.Sequence).Where(x => x.Sequence >= 19));

            ExportTestQuestions(questions, "ultrashorttest", false);

            return("ok");
        }
Example #3
0
        //
        // GET: /OldProfessions/

        public ActionResult Index()
        {
            CBNProfessionClient client = new CBNProfessionClient();

            return(View(client.GetAll()));
        }