コード例 #1
0
        public IActionResult AddUser()
        {
            string  userID        = signInManager.UserManager.GetUserId(HttpContext.User);
            string  userToString  = (string)TempData["User"];
            JObject userToJobject = JObject.Parse(userToString);

            webShopDBContext.AddUser(userToJobject, userID);

            return(Redirect("/Home/Index"));
        }