public List <UserLoginDataModel> GetListByUserName(string value) { var dataQuery = new UserLoginDataModel(); dataQuery.UserName = JsonConvert.DeserializeObject(value).ToString(); return(UserLoginMongoDbDataManager.GetList(dataQuery, SessionVariables.RequestProfile)); }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtUserName.Text)) { var userdata = UserLoginMongoDbDataManager.GetList(); gridUserLogin.DataSource = userdata; gridUserLogin.DataBind(); } }
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(); }
protected void lnkUserLogin_Click(object sender, EventArgs e) { gridUserLogin.DataSource = UserLoginMongoDbDataManager.GetList(); gridUserLogin.DataBind(); }
// GET api/summary/GetList public List <UserLoginDataModel> GetList() { return(UserLoginMongoDbDataManager.GetList()); }