Beispiel #1
0
        public async Task <IActionResult> DeleteUser(string id)
        {
            if (await UserMgr.FindByEmailAsync(id) != null)
            {
                await UserMgr.DeleteAsync(UserMgr.FindByEmailAsync(id).Result);

                return(Ok($"Successfully Deleted User with User ID of {id}"));
            }

            return(BadRequest($"failed to delete User, User with User ID of {id} not found"));
        }