Example #1
0
        public IActionResult Index()
        {
            JObject obj = JObject.Parse(TempData.Peek("client").ToString());

            System.Diagnostics.Debug.WriteLine(TempData.Peek("client").ToString());
            if (obj["group"].ToString() != "Manager")
            {
                return(RedirectToAction("Index", "Home"));
            }
            JArray array = DbUsers.getAllRequirementsList(_context);

            ViewData["list"] = array;
            return(View());
        }