예제 #1
0
        /// <summary>
        /// This function will be used for validating if the given user is registered under the given company database.
        /// </summary>
        /// <param name="i_sConnectionString"></param>
        /// <param name="i_objUserDetailsDTO"></param>
        public Boolean SavePasswordConfigDetails(string i_sConnectionString, InsiderTradingDAL.PasswordConfigDTO objPassConfigDTO)
        {
            try
            {
                //InsiderTradingDAL.UserInfoDAL objUserInfoDAL = new InsiderTradingDAL.UserInfoDAL();
                using (var objPassConfigDAL = new InsiderTradingDAL.PasswordConfigDAL())
                {
                    objPassConfigDAL.SavePasswordConfigDetails(i_sConnectionString, objPassConfigDTO);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(true);
        }
예제 #2
0
        /// <summary>
        /// This method is used for the get user pwd Details
        /// </summary>
        /// <param name="i_sConnectionString">DB Connection string</param>
        /// <param name="LoggedInId">LoggedInId</param>
        /// <returns>Object PasswordConfigDTO DTO</returns>

        public List <PasswordConfigDTO> CheckPasswordHistory(string i_sConnectionString, int i_sUserInfoId)
        {
            List <PasswordConfigDTO> lstUserPwdDetails = new List <PasswordConfigDTO>();

            try
            {
                using (var objPassConfigDAL = new InsiderTradingDAL.PasswordConfigDAL())
                {
                    lstUserPwdDetails = objPassConfigDAL.CheckPasswordHistory(i_sConnectionString, i_sUserInfoId).ToList <PasswordConfigDTO>();
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }
            return(lstUserPwdDetails);
        }
예제 #3
0
        /// <summary>
        /// This function will be used for validating if the given user is registered under the given company database.
        /// </summary>
        /// <param name="i_sConnectionString"></param>
        /// <param name="i_objUserDetailsDTO"></param>
        public InsiderTradingDAL.PasswordConfigDTO GetPasswordConfigDetails(string i_sConnectionString)
        {
            InsiderTradingDAL.PasswordConfigDTO bReturn = null;
            try
            {
                //InsiderTradingDAL.UserInfoDAL objUserInfoDAL = new InsiderTradingDAL.UserInfoDAL();
                using (var objUserInfoDAL = new InsiderTradingDAL.PasswordConfigDAL())
                {
                    bReturn = objUserInfoDAL.GetPasswordConfigDetails(i_sConnectionString);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(bReturn);
        }