Beispiel #1
0
        public virtual BOWorker MapEFToBO(
            Worker ef)
        {
            var bo = new BOWorker();

            bo.SetProperties(
                ef.Id,
                ef.CommunicationStyle,
                ef.Fingerprint,
                ef.IsDisabled,
                ef.JSON,
                ef.MachinePolicyId,
                ef.Name,
                ef.RelatedDocumentIds,
                ef.Thumbprint,
                ef.WorkerPoolIds);
            return(bo);
        }
        public virtual BOWorker MapModelToBO(
            string id,
            ApiWorkerRequestModel model
            )
        {
            BOWorker boWorker = new BOWorker();

            boWorker.SetProperties(
                id,
                model.CommunicationStyle,
                model.Fingerprint,
                model.IsDisabled,
                model.JSON,
                model.MachinePolicyId,
                model.Name,
                model.RelatedDocumentIds,
                model.Thumbprint,
                model.WorkerPoolIds);
            return(boWorker);
        }