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); }
public int GetSessionUser(int utype) { var ta = new DsMasterTableAdapters.ACTIVESESSIONTableAdapter() {Connection = {ConnectionString = _constr}}; var rt = ta.FillByActive(utype) ?? 0; return (int) rt; }