Beispiel #1
0
        public IActionResult OnPostBan(string email, int id)
        {
            BannedUser bannedUser = new BannedUser();

            bannedUser.BannedEmail = email;
            _reportService.AddBan(bannedUser);
            _userService.DeleteUser(id);
            AllReports     = _reportService.ReportedUsers();
            ProfilePicture = _iPicture.GetProfilePicture(userID);
            return(Page());
        }