Example #1
0
        public async Task <IActionResult> OnPostDeleteUserAsync(string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                return(new RedirectToPageResult("Error"));
            }

            guid = Guid.Parse(id);

            var response = await _userDataService.DeleteUserById(guid);

            if (response.IsSuccesfull)
            {
                return(new RedirectToPageResult("./Administrative_EditUsers"));
            }
            return(new RedirectToPageResult("Error"));
        }