public async Task<RegisterResponse> RegistrationAsync(RegisterRequest registerRequest) { var headers = new HeaderCollection(); headers.Add("origin", _httpClient.BaseAddress?.OriginalString); headers.CopyTo(_httpClient.DefaultRequestHeaders); var response = await _httpClient.SendAsync<RegisterResponse>(HttpMethod.Post, "api/Account/register", registerRequest.AsJson(), CancellationToken.None); return response; }