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

            bo.SetProperties(
                ef.Id,
                ef.ApiKeyHashed,
                ef.Created,
                ef.JSON,
                ef.UserId);
            return(bo);
        }
Ejemplo n.º 2
0
        public virtual BOApiKey MapModelToBO(
            string id,
            ApiApiKeyRequestModel model
            )
        {
            BOApiKey boApiKey = new BOApiKey();

            boApiKey.SetProperties(
                id,
                model.ApiKeyHashed,
                model.Created,
                model.JSON,
                model.UserId);
            return(boApiKey);
        }