public virtual BOUser MapEFToBO(
            User ef)
        {
            var bo = new BOUser();

            bo.SetProperties(
                ef.Id,
                ef.DisplayName,
                ef.EmailAddress,
                ef.ExternalId,
                ef.ExternalIdentifiers,
                ef.IdentificationToken,
                ef.IsActive,
                ef.IsService,
                ef.JSON,
                ef.Username);
            return(bo);
        }
Esempio n. 2
0
        public virtual BOUser MapModelToBO(
            string id,
            ApiUserRequestModel model
            )
        {
            BOUser boUser = new BOUser();

            boUser.SetProperties(
                id,
                model.DisplayName,
                model.EmailAddress,
                model.ExternalId,
                model.ExternalIdentifiers,
                model.IdentificationToken,
                model.IsActive,
                model.IsService,
                model.JSON,
                model.Username);
            return(boUser);
        }