Refactored response and request models to dto naming. Adjusted mapper naming

This commit is contained in:
2026-01-14 19:19:45 +01:00
parent 1d1dfc2c1c
commit 7f482fd6c3
37 changed files with 119 additions and 119 deletions

View File

@@ -77,15 +77,15 @@
[Parameter] public int Id { get; set; }
private FormHandler Form;
private UpdateUserRequest Request;
private UserResponse User;
private UpdateUserDto Request;
private UserDto User;
private async Task LoadAsync(LazyLoader _)
{
var user = await HttpClient.GetFromJsonAsync<UserResponse>($"api/users/{Id}", Constants.SerializerOptions);
var user = await HttpClient.GetFromJsonAsync<UserDto>($"api/users/{Id}", Constants.SerializerOptions);
User = user!;
Request = UserMapper.MapToUpdate(User);
Request = UserMapper.ToUpdate(User);
}
private async Task OnSubmitAsync()