Exemplo n.º 1
0
        public ActionResult LijstOverzicht(string id)
        {
            CreateListLogic   logic = new CreateListLogic();
            ListOverviewModel model = new ListOverviewModel();
            Lijst             l     = logic.CreateList(id, HttpContext.Session.GetString("Username"));

            model.Lijstje = l;
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult ZieLijst(string id)
        {
            ListOverviewModel model = new ListOverviewModel();
            ListOverviewLogic logic = new ListOverviewLogic();

            if (id.Contains("?"))
            {
                string[] t    = id.Split('?');
                string   user = t[1];
                id = t[0];
                Lijst l = logic.GiveList(id, user);
                model.Lijstje = l;
            }
            else
            {
                Lijst l = logic.GiveList(id, HttpContext.Session.GetString("Username"));
                model.Lijstje = l;
            }
            return(View(model));
        }