public virtual ApiIllustrationResponseModel MapBOToModel( BOIllustration boIllustration) { var model = new ApiIllustrationResponseModel(); model.SetProperties(boIllustration.IllustrationID, boIllustration.Diagram, boIllustration.ModifiedDate); return(model); }
public virtual BOIllustration MapEFToBO( Illustration ef) { var bo = new BOIllustration(); bo.SetProperties( ef.IllustrationID, ef.Diagram, ef.ModifiedDate); return(bo); }
public virtual Illustration MapBOToEF( BOIllustration bo) { Illustration efIllustration = new Illustration(); efIllustration.SetProperties( bo.Diagram, bo.IllustrationID, bo.ModifiedDate); return(efIllustration); }
public virtual BOIllustration MapModelToBO( int illustrationID, ApiIllustrationRequestModel model ) { BOIllustration boIllustration = new BOIllustration(); boIllustration.SetProperties( illustrationID, model.Diagram, model.ModifiedDate); return(boIllustration); }