Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntityTable update and create fluentvalidation errors not show #226

Open
jcarlosmanuel opened this issue Sep 22, 2022 · 0 comments
Open

Comments

@jcarlosmanuel
Copy link

Hello, when creating or updating a record, the fluentvalidation errors are not shown, I made a modification to the ApiHelper both methods, to obtain those errors and show them, they consider that the change is correct

catch (ApiException ex)
{
if (ex.Result.Errors is not null)
{
customValidation?.DisplayErrors(ex.Result.Errors);
foreach (var item in ex.Result.Errors)
{
snackbar.Add(item.Value.FirstOrDefault(), Severity.Error);
}
}
else
{
snackbar.Add("Something went wrong!", Severity.Error);
}
}

thanks I wait for the answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant