Example #1
0
        public async Task <JsonResult> RegisterNewUser(UserLoginViewModel model)
        {
            try
            {
                // TODO: Add update logic here
                CallApi asd  = new CallApi("https://localhost:5001", new System.Net.Http.HttpClient());
                var     asdd = await asd.AuthenticateAsync(new UserLoginModel { Username = "******", Password = "******" });

                if (true)
                {
                    HttpContext.Session.Set("", new int());
                }


                return(Json(nameof(Index)));
            }
            catch
            {
                return(Json(""));
            }
        }