Beispiel #1
0
        public ActionResult Recipe2()
        {
            ViewBag.Title = "Recipe 2";
            ViewBag.Description = "User's educational organization id's";

            string token = Session["inbloomtoken"].ToString();

            Recipe rec = new Recipe2();
            ViewBag.Data = rec.RunRecipe(token);
            return View("Index");
        }
Beispiel #2
0
        public ActionResult Recipe4()
        {
            ViewBag.Title = "Recipe 4";
            ViewBag.Description = "Created staff association's id";

            string token = Session["inbloomtoken"].ToString();

            Recipe2 recGetEduOrg = new Recipe2();
            string eduOrgId = recGetEduOrg.getEducationalOrgs(token).First().id;

            Recipe3 recCreate = new Recipe3();
            string staffId = recCreate.RunRecipe(token);

            Recipe4 recAssoc = new Recipe4();
            ViewBag.Data = recAssoc.RunRecipe(token: token, staffId: staffId, eduOrgId: eduOrgId);

            return View("Index");
        }