Ejemplo n.º 1
0
        public virtual BOPassword MapEFToBO(
            Password ef)
        {
            var bo = new BOPassword();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.ModifiedDate,
                ef.PasswordHash,
                ef.PasswordSalt,
                ef.Rowguid);
            return(bo);
        }
        public virtual BOPassword MapModelToBO(
            int businessEntityID,
            ApiPasswordRequestModel model
            )
        {
            BOPassword boPassword = new BOPassword();

            boPassword.SetProperties(
                businessEntityID,
                model.ModifiedDate,
                model.PasswordHash,
                model.PasswordSalt,
                model.Rowguid);
            return(boPassword);
        }