Пример #1
0
        public async Task <IActionResult> Reg(int type = 0)
        {
            var data_words = Language_Settings.GetWords(1);
            var _mail      = "" + HttpContext.Session.GetString("reg_mail");
            var _log       = "" + HttpContext.Session.GetString("reg_login");

            ViewBag.reg_login = _log;
            ViewBag.reg_mail  = _mail;
            ViewBag.Data_name = data_words;
            return(await Task.Run(() => View(type)));
        }
Пример #2
0
        public async Task <IActionResult> Authorization(int ex = 0)
        {
            var count = 0;

            if (string.IsNullOrEmpty(HttpContext.Session.GetString("CountIn")))
            {
                HttpContext.Session.SetString("CountIn", "0");
            }
            else
            {
                count = Convert.ToInt32(HttpContext.Session.GetString("CountIn"));
                count++;
                HttpContext.Session.SetString("CountIn", "" + count);
            }
            var data = new Authorization();

            data.ex    = ex;
            data.count = count;
            var data_names_on_lg = Language_Settings.GetWords(1);

            ViewBag.Data_name = data_names_on_lg;
            ViewBag.AutoData  = data;
            return(await Task.Run(() => View()));
        }