Exemple #1
0
 public void DoSave(int USERID, int UTYPE)
 {
     var ta = new DsMasterTableAdapters.ACTIVESESSIONTableAdapter {Connection = {ConnectionString = _constr}};
     ta.UpdateLogOut(USERID);
     ta.Insert(USERID, UTYPE, DateTime.Now.Date, true);
 }
Exemple #2
0
 public int GetSessionUser(int utype)
 {
     var ta = new DsMasterTableAdapters.ACTIVESESSIONTableAdapter() {Connection = {ConnectionString = _constr}};
     var rt = ta.FillByActive(utype) ?? 0;
     return (int) rt;
 }