protected async Task HandleSubmit() { if (_user.Id == 0) { await UserApiService.Post(_user); } else { await UserApiService.Put(_user.Id, _user); } NavigationManager.NavigateTo("admin/users"); }
protected async Task HandleSubmit() { if (_user.Id == 0) { await UserApiService.Post(_user); } else { await UserApiService.Put(_user.Id, _user); } NavigationManager.NavigateTo("admin/users"); }