Skip to content
Discussion options

You must be logged in to vote

I'd expect the code to be more like this:

  var newCourtier = await Courtier.NewCourtierAsync();

  newCourtier.NoCourtier = courtierToAdd.NoCourtier;
  newCourtier.Adresse1 = courtierToAdd.Adresse1;
  newCourtier.Province = courtierToAdd.Province;
  newCourtier.CodePostal = courtierToAdd.CodePostal;
  newCourtier.Email = courtierToAdd.Email;

  return await newCourtier.SaveAsync();

Client-side Blazor is single threaded (like browsers, JavaScript, and WebAssembly), so I have no idea what happens if you try to do Task.Run stuff.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Mikael-Pothier
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@Mikael-Pothier
Comment options

@rockfordlhotka
Comment options

Answer selected by Mikael-Pothier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants