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