public static string GetUserDetails() { BusinessRules.Common blobj = new BusinessRules.Common(); DataSet ds = blobj.GetUserDetails(); return(JsonConvert.SerializeObject(ds)); }
public void GetUserType() { BusinessRules.Common blobj = new BusinessRules.Common(); System.Data.DataSet ds = blobj.GetUserType(); if (ds.Tables[0].Rows.Count > 0) { ddlUser.DataSource = ds; ddlUser.DataValueField = "Value"; ddlUser.DataTextField = "Text"; ddlUser.DataBind(); } }