Пример #1
0
        public IActionResult Index()
        {
            var contentRoot = _hostingEnvironment.ContentRootPath;

            HttpContext.Session.SetString("SessionTime", DateTime.Now.AddDays(-10).ToLongDateString());
            List <PersonalInfo> listPersonalInfo = JSONReader <PersonalInfo> .GetAll("dataPersonalInfo", contentRoot);

            HttpContext.Session.SetObjectAsJson("PersonalInfoData", listPersonalInfo);

            return(View());
        }