You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
942 B

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace BWPMWebForm.Administration
{
public partial class Benutzerverwaltung : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MyBindDataSource();
}
private void MyBindDataSource()
{
Helper.HttpClientHelper webhelper = new Helper.HttpClientHelper();
webhelper.CallService("user", "", "GET", null);
if (webhelper.Results.resultstatus != true)
{
return;
}
List<BWPMModels.User> users = JsonConvert.DeserializeObject<List<BWPMModels.User>>(webhelper.Results.daten);
this.Grid1.DataSource =users;
this.Grid1.DataBind();
}
}
}