title: Having problem with HttpClient - PostAsJsonAsync in blazor
body: <p>I am trying to use the <code>PostAsJsonAsync</code> in the same way it used to work <code>PostJsonAsync</code> before been updated, but Im getting this error:</p>
  <p>CS1503  Argument 3: cannot convert from 'ICCR.Shared.LoginModel' to 'ICCR.Shared.LoginResult'   ICCR.Client</p>
  <p>And the registerModel in the code bellow its marked in red, I would thank if you tell me how to solve it.</p>
  <pre><code>public async Task&lt;RegisterResult&gt; Register(RegisterModel registerModel)
      {
      
          var result = await _httpClient.PostAsJsonAsync&lt;RegisterResult&gt;(&quot;api/accounts&quot;, registerModel);
          return result;
      }
  </code></pre>