//Get All Departments protected void btnGetAll_Click(object sender, EventArgs e) { gvGetAllDepartments.DataSource = api.GetDepartments(url); gvGetAllDepartments.DataBind(); }