public virtual ApiTenantResponseModel MapBOToModel( BOTenant boTenant) { var model = new ApiTenantResponseModel(); model.SetProperties(boTenant.Id, boTenant.Name); return(model); }
public virtual BOTenant MapEFToBO( Tenant ef) { var bo = new BOTenant(); bo.SetProperties( ef.Id, ef.Name); return(bo); }
public virtual Tenant MapBOToEF( BOTenant bo) { Tenant efTenant = new Tenant(); efTenant.SetProperties( bo.Id, bo.Name); return(efTenant); }
public virtual BOTenant MapModelToBO( int id, ApiTenantRequestModel model ) { BOTenant boTenant = new BOTenant(); boTenant.SetProperties( id, model.Name); return(boTenant); }