Пример #1
0
        public IActionResult Group()
        {
            HttpContext.Session.SetString("first_name", "josh");
            HttpContext.Session.SetInt32("user_id", 15);
            var first_name = HttpContext.Session.GetString("first_name");

            ViewBag.first_name = first_name;
            ViewBag.user_id    = HttpContext.Session.GetInt32("user_id");
            ViewBag.all_groups = groupFactory.FindAll();
            return(View());
        }