Example #1
0
        public virtual ApiIllustrationResponseModel MapBOToModel(
            BOIllustration boIllustration)
        {
            var model = new ApiIllustrationResponseModel();

            model.SetProperties(boIllustration.IllustrationID, boIllustration.Diagram, boIllustration.ModifiedDate);

            return(model);
        }
Example #2
0
        public virtual BOIllustration MapEFToBO(
            Illustration ef)
        {
            var bo = new BOIllustration();

            bo.SetProperties(
                ef.IllustrationID,
                ef.Diagram,
                ef.ModifiedDate);
            return(bo);
        }
Example #3
0
        public virtual Illustration MapBOToEF(
            BOIllustration bo)
        {
            Illustration efIllustration = new Illustration();

            efIllustration.SetProperties(
                bo.Diagram,
                bo.IllustrationID,
                bo.ModifiedDate);
            return(efIllustration);
        }
Example #4
0
        public virtual BOIllustration MapModelToBO(
            int illustrationID,
            ApiIllustrationRequestModel model
            )
        {
            BOIllustration boIllustration = new BOIllustration();

            boIllustration.SetProperties(
                illustrationID,
                model.Diagram,
                model.ModifiedDate);
            return(boIllustration);
        }