예제 #1
0
        public async Task <ActionResult> DeleteUser(string id)
        {
            IdentityUser user = _userManager.GetById(id);

            if (user != null)
            {
                _userManager.Delete(user.Id);
                return(Ok("Ok"));
            }
            return(PartialView("Index"));
        }