@rendermode InteractiveServer
@rendermode InteractiveAuto
c#public AdminService(HttpClient httpClient){ _httpClient = httpClient; _httpClient.BaseAddress = new Uri("https://localhost:7148/");}
c#[HttpGet("GetAllUsers")]public async Task<ActionResult<List<UserInfo>>> GetAllUsers(){ return Ok(await _adminService.GetAllUsers());}[HttpGet("GetUser/{id}")]public async Task<ActionResult<UserInfo>> GetUser(string id){ return Ok(await _adminService.GetUser(id));}