Exemplo n.º 1
0
        public IActionResult NewList()
        {
            ListContentData DefaultListContent = CommonQueries.GetListContentData(_context);

            ViewBag.DefaultListContent = DefaultListContent;

            return(View());
        }
Exemplo n.º 2
0
        public IActionResult DisplayList(int Id)
        {
            ListContentData DisplayListContent = CommonQueries.GetListContentData(_context, Id);

            ViewBag.DisplayListContent = DisplayListContent;

            return(View());
        }
Exemplo n.º 3
0
        public IActionResult Edit(int ListId)
        {
            // Don't edit if default list
            if (ListId == 1)
            {
                return(RedirectToAction("MyLists"));
            }

            ListContentData DefaultListContent    = CommonQueries.GetListContentData(_context);
            ListContentData ListToEditListContent = CommonQueries.GetListContentData(_context, ListId);

            ViewBag.DefaultListContent    = DefaultListContent;
            ViewBag.ListToEditListContent = ListToEditListContent;

            return(View());
        }