public async Task <IActionResult> Delete(string id)
        {
            if (!string.IsNullOrEmpty(id))
            {
                await _usersClient.Delete(id);
            }

            return(RedirectToAction("Index"));
        }
        public async Task DeleteUserAsync(string id)
        {
            var result = await _usersClient.Delete(id);

            if (!result.IsSuccessStatusCode)
            {
                var content = await result.Content.ReadAsStringAsync();

                throw new DeleteUserException("During deleting user error occurs: " + content);
            }

            _cacheService.ClearUsersCache();
        }