public virtual ApiBucketResponseModel MapBOToModel( BOBucket boBucket) { var model = new ApiBucketResponseModel(); model.SetProperties(boBucket.Id, boBucket.ExternalId, boBucket.Name); return(model); }
public virtual BOBucket MapEFToBO( Bucket ef) { var bo = new BOBucket(); bo.SetProperties( ef.Id, ef.ExternalId, ef.Name); return(bo); }
public virtual Bucket MapBOToEF( BOBucket bo) { Bucket efBucket = new Bucket(); efBucket.SetProperties( bo.ExternalId, bo.Id, bo.Name); return(efBucket); }
public virtual BOBucket MapModelToBO( int id, ApiBucketRequestModel model ) { BOBucket boBucket = new BOBucket(); boBucket.SetProperties( id, model.ExternalId, model.Name); return(boBucket); }