Exemple #1
0
        public IActionResult DeleteConfirmed(string userId)
        {
            var user        = _repo.ReadApplicationUser(User.Identity.Name);
            var userProfile = _repo.ReadProfile(user.User.Id);

            // An orchestra is deleted by its id.
            _repo.DeleteProfile(userId);
            // The page redirects back to the index page.
            return(RedirectToAction("Index", "Home"));
        }