コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }