public async Task <bool> AddAsync(ManagerUser managerUser, ManagerUser newManagerUser) { var host = GetHost(managerUser); UserDto userDto = newManagerUser.ConvertToUserDto(); try { var result = await _httpClinet.PostAsJsonAsync($"http://{host}:{managerUser.Manager.Port}/{controller}/{managerUser.Name}/{managerUser.Token}", userDto); if (result.IsSuccessStatusCode) { return(true); } else { return(false); } } catch (HttpRequestException ex) { return(false); } }