예제 #1
0
        public List <UserLoginDataModel> GetListByUserName(string value)
        {
            var dataQuery = new UserLoginDataModel();

            dataQuery.UserName = JsonConvert.DeserializeObject(value).ToString();

            return(UserLoginMongoDbDataManager.GetList(dataQuery, SessionVariables.RequestProfile));
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtUserName.Text))
            {
                var userdata = UserLoginMongoDbDataManager.GetList();

                gridUserLogin.DataSource = userdata;
                gridUserLogin.DataBind();
            }
        }
예제 #3
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            var data = new Framework.Components.LogAndTrace.UserLoginDataModel();

            data.UserName = txtUserName.Text;

            var userdata = UserLoginMongoDbDataManager.GetList(data, SessionVariables.RequestProfile);

            gridUserLogin.DataSource = userdata;
            gridUserLogin.DataBind();
        }
예제 #4
0
 protected void lnkUserLogin_Click(object sender, EventArgs e)
 {
     gridUserLogin.DataSource = UserLoginMongoDbDataManager.GetList();
     gridUserLogin.DataBind();
 }
예제 #5
0
 // GET api/summary/GetList
 public List <UserLoginDataModel> GetList()
 {
     return(UserLoginMongoDbDataManager.GetList());
 }