When I use the following code:
class LoginDto { public string Username { get; set; } public string Password { get; set; } } public async void OnLogin