Example #1
0
        public static string GetUserDetails()
        {
            BusinessRules.Common blobj = new BusinessRules.Common();
            DataSet ds = blobj.GetUserDetails();

            return(JsonConvert.SerializeObject(ds));
        }
Example #2
0
 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();
     }
 }