protected void lnkBtnLogout_Click(object sender, EventArgs e)
 {
     try
     {
         HotLeadsBL objHotLeadsBL = new HotLeadsBL();
         DataSet    dsDatetime    = objHotLeadBL.GetDatetime();
         DateTime   dtNow         = Convert.ToDateTime(dsDatetime.Tables[0].Rows[0]["Datetime"].ToString());
         objHotLeadsBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), dtNow, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
         Session.Abandon();
         Response.Redirect("Login.aspx");
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 2
0
    public ArrayList GetAllLoginTransferAgentsDetailsService()
    {
        DataSet    ds            = new DataSet();
        HotLeadsBL objHotLeadsBL = new HotLeadsBL();
        ArrayList  arr           = new ArrayList();

        ds = objHotLeadsBL.GetAllLoginTransferAgentsDetails();

        if (ds.Tables[0].Rows.Count > 0)
        {
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                arr.Add(ds.Tables[0].Rows[i]["AgentUFirstName"].ToString() + "," + ds.Tables[0].Rows[i]["AgentCenterCode"].ToString());
            }
        }
        return(arr);
    }