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

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual BOTenant MapModelToBO(
            int id,
            ApiTenantRequestModel model
            )
        {
            BOTenant boTenant = new BOTenant();

            boTenant.SetProperties(
                id,
                model.Name);
            return(boTenant);
        }