public int SaveUserLoginCredentials(UserLoginCredentialBusinessObject userLoginCredentialBO)
        {
            int result = 0;
            if (ValidateUserLoginCredentials(userLoginCredentialBO))
            {
                Mapper.CreateMap<UserLoginCredentialBusinessObject, tblUserLoginCredentialsDto>();
                var userLoginCredentialsDto = new tblUserLoginCredentialsDto();
                Mapper.Map(userLoginCredentialBO, userLoginCredentialsDto);

                UserCredentialProviderDAL objRegistrationProvider = new UserCredentialProviderDAL();
                result = objRegistrationProvider.SaveUserLoginCredentials(userLoginCredentialsDto);
            }

            return result;
        }
 private bool ValidateUserLoginCredentials(UserLoginCredentialBusinessObject userLoginCredentialBO)
 {
     bool isValid = true;
     try
     {
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.UserId);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.LoginPassword);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.IsLocked);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.UserType);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.Key);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.Salt);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.CreatedBy);
         if (isValid) isValid = ValidateBusinessLogic.CheckNullOrEmpty(userLoginCredentialBO.CreatedOn);
     }
     catch
     {
         isValid = false;
     }
     return isValid;
 }