Refactored response and request models to dto naming. Adjusted mapper naming
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user