public virtual ApiSpaceFeatureResponseModel MapBOToModel( BOSpaceFeature boSpaceFeature) { var model = new ApiSpaceFeatureResponseModel(); model.SetProperties(boSpaceFeature.Id, boSpaceFeature.Name); return(model); }
public virtual BOSpaceFeature MapEFToBO( SpaceFeature ef) { var bo = new BOSpaceFeature(); bo.SetProperties( ef.Id, ef.Name); return(bo); }
public virtual SpaceFeature MapBOToEF( BOSpaceFeature bo) { SpaceFeature efSpaceFeature = new SpaceFeature(); efSpaceFeature.SetProperties( bo.Id, bo.Name); return(efSpaceFeature); }
public virtual BOSpaceFeature MapModelToBO( int id, ApiSpaceFeatureRequestModel model ) { BOSpaceFeature boSpaceFeature = new BOSpaceFeature(); boSpaceFeature.SetProperties( id, model.Name); return(boSpaceFeature); }