private void getAuditDetails(bool IsSuccess) { objLogin = new Authentication(); Global gb = new Global(); bool IsLogout = false; string hostip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; DateTime timestamp = DateTime.Now; if (Global.ip) { //objLogin.AuditTrail(txtUserName.Text.Trim(), IsSuccess, hostip, timestamp, IsLogout); } else { //objLogin.AuditTrailAdd(txtUserName.Text.Trim(), IsSuccess, timestamp, IsLogout); objLogin.AuditTrail(txtLoginId.Text.Trim(), IsSuccess, hostip, timestamp, IsLogout); } }
private void getAuditDetails() { bool IsLogout = true; bool IsSuccess = false; objLogin = new Authentication(); string strHostaddr = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; DateTime timestamp = DateTime.Now; //Function Call for storing the audit trail if (Session != null) { //string FirstName = ((UserDetails)Session[clsConstant.TOKEN]).FirstName.ToString(); string UserName = ((UserDetails)Session[clsConstant.TOKEN]).userNm.ToString(); objLogin.AuditTrail(UserName, IsSuccess, strHostaddr, timestamp, IsLogout); } }