Beispiel #1
0
        public IActionResult DeleteUser()
        {
            Guid userGuid = Guid.Parse(Read("userGuid"));

            try
            {
                _userApiService.DeleteUser(userGuid);
                return(RedirectToAction(nameof(LoadLoginView)));
            }
            catch (Exception e)
            {
                return(LoadLoginView(MessageHandler(e, "Unknown Error: DeleteUser")));
            }
        }