Ejemplo n.º 1
0
        public async Task <ActionResult> PersonalInfo(int id, string email)
        {
            var changedUser = await adminApi.ChangeUserDataAsync(id, email);

            WebSecurity.Logout();
            FormsAuthentication.SetAuthCookie(changedUser.Email, false);

            TempData["message"] = string.Format("The user email was successfully changed!");

            return(View(changedUser));
        }