コード例 #1
0
        public static IEnumerable <ProviderLanguage> ProviderLanguages(IEnumerable <Models.ProviderLanguage> entities)
        {
            var models = new List <ProviderLanguage>();

            foreach (var entity in entities)
            {
                models.Add(ProviderMappings.ProviderLanguage(entity));
            }
            return(models);
        }
コード例 #2
0
        public static IEnumerable <Provider> Providers(IEnumerable <Models.Provider> entities)
        {
            var providers = new List <Provider>();

            foreach (var entity in entities)
            {
                providers.Add(ProviderMappings.Provider(entity));
            }

            return(providers);
        }
コード例 #3
0
        public static Provider Provider(Models.Provider entity)
        {
            var p = new Provider();

            p.Active                   = entity.ProviderStatus == (int)ProviderStatus.Active;
            p.IsHired                  = entity.ProviderIsHired;
            p.Address1                 = entity.ProviderAddress1;
            p.Address2                 = entity.ProviderAddress2;
            p.Availability             = entity.ProviderAvailability;
            p.CanCall                  = entity.ProviderCanCall;
            p.CanEmail                 = entity.ProviderCanEmail;
            p.CanReachByPhone          = entity.ProviderCanReachByPhone;
            p.CAQH                     = entity.ProviderCAQH;
            p.CertificationID          = entity.ProviderCertificationID;
            p.CertificationRenewalDate = entity.ProviderCertificationRenewalDate;
            p.CertificationState       = entity.ProviderCertificationState;
            p.City                     = entity.ProviderCity;
            p.CompanyName              = entity.ProviderCompanyName;
            p.DateCreated              = entity.DateCreated;
            p.DocumentStatus           = entity.ProviderDocumentStatus;
            p.Email                    = entity.ProviderPrimaryEmail;
            p.Fax                = entity.ProviderFax;
            p.FirstName          = entity.ProviderFirstName;
            p.HasBackgroundCheck = entity.ProviderHasBackgroundCheck;
            p.HasReferences      = entity.ProviderHasReferences;
            p.HasResume          = entity.ProviderHasResume;
            p.HourlyRate         = entity.ProviderRate;
            p.ID             = entity.ID;
            p.LastName       = entity.ProviderLastName;
            p.LBA            = entity.ProviderLBA;
            p.Notes          = entity.ProviderNotes;
            p.NPI            = entity.ProviderNPI;
            p.Phone          = entity.ProviderPrimaryPhone;
            p.Phone2         = entity.ProviderPhone2;
            p.State          = entity.ProviderState;
            p.W9Date         = entity.ProviderW9Date;
            p.Zip            = entity.ProviderZip;
            p.ResumeFileName = entity.ResumeFileName;
            p.ResumeLocation = entity.ResumeLocation;

            p.ProviderNumber = entity.ProviderNumber;

            p.Type         = ProviderMappings.ProviderType(entity.ProviderType1);
            p.ServiceAreas = ProviderMappings.ServiceAreas(entity.ProviderServiceZipCodes.ToList()).ToList();
            p.Languages    = ProviderMappings.ProviderLanguages(entity.ProviderLanguages.ToList()).ToList();

            return(p);
        }
コード例 #4
0
        public static ProviderPortalUser ProviderPortalUser(Models.ProviderPortalUser entity, bool includeProviderMap = false)
        {
            var p = new ProviderPortalUser();

            p.AspNetUserID       = entity.AspNetUserID;
            p.DateCreated        = entity.DateCreated;
            p.ID                 = entity.ID;
            p.ProviderUserNumber = entity.ProviderUserNumber;
            p.ProviderID         = entity.ProviderID;
            if (includeProviderMap)
            {
                p.Provider = ProviderMappings.Provider(entity.Provider);
            }
            p.HasAppAccess = entity.ProviderHasAppAccess;
            return(p);
        }