예제 #1
0
        public virtual BOTenant MapEFToBO(
            Tenant ef)
        {
            var bo = new BOTenant();

            bo.SetProperties(
                ef.Id,
                ef.DataVersion,
                ef.JSON,
                ef.Name,
                ef.ProjectIds,
                ef.TenantTags);
            return(bo);
        }
예제 #2
0
        public virtual BOTenant MapModelToBO(
            string id,
            ApiTenantRequestModel model
            )
        {
            BOTenant boTenant = new BOTenant();

            boTenant.SetProperties(
                id,
                model.DataVersion,
                model.JSON,
                model.Name,
                model.ProjectIds,
                model.TenantTags);
            return(boTenant);
        }