Esempio n. 1
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");
        }
Esempio n. 2
0
        public ActionResult Recipe3()
        {
            ViewBag.Title = "Recipe 3";
            ViewBag.Description = "Created staff member's REST url";

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

            Recipe rec = new Recipe3();
            ViewBag.Data = rec.RunRecipe(token);
            return View("Index");
        }