Epiworx.Business.UserPassword.DataPortal_Fetch C# (CSharp) Method

DataPortal_Fetch() private method

private DataPortal_Fetch ( UserPasswordDataCriteria criteria ) : void
criteria UserPasswordDataCriteria
return void
        private void DataPortal_Fetch(UserPasswordDataCriteria criteria)
        {
            using (var dalManager = DataFactoryManager.GetManager())
            {
                var dalFactory = dalManager.GetProvider<IUserPasswordDataFactory>();

                var data = dalFactory.Fetch(criteria);

                using (this.BypassPropertyChecks)
                {
                    this.Fetch(data);
                }

                this.BusinessRules.CheckRules(); // We initialized the field values to empty so we need to force the rules to check
            }
        }