ASP.NET Don't clean form after error validation
Hi, i have a GET method called Create() where just display the Create View
public IActionResult Create()
and a POST method called Store() where just store all the values from Create view form
public async Task<IActionResult> Store(ViewModel vm)
How can I return a Redirect to "Create" View without loosing form data after Fluent Validation error?
All is working correctly, the problem is that when I returned to my "Create" view I loose all the form information1 Reply
You don't return a redirect, you return a view with the data to be rendered
Similar to https://docs.fluentvalidation.net/en/latest/aspnet.html#manual-validation