Ejemplo n.º 1
0
        public virtual ApiApiKeyResponseModel MapBOToModel(
            BOApiKey boApiKey)
        {
            var model = new ApiApiKeyResponseModel();

            model.SetProperties(boApiKey.Id, boApiKey.ApiKeyHashed, boApiKey.Created, boApiKey.JSON, boApiKey.UserId);

            return(model);
        }
Ejemplo n.º 2
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.º 3
0
        public virtual ApiKey MapBOToEF(
            BOApiKey bo)
        {
            ApiKey efApiKey = new ApiKey();

            efApiKey.SetProperties(
                bo.ApiKeyHashed,
                bo.Created,
                bo.Id,
                bo.JSON,
                bo.UserId);
            return(efApiKey);
        }
Ejemplo n.º 4
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);
        }