Example #1
0
        public virtual ApiVersionInfoResponseModel MapBOToModel(
            BOVersionInfo boVersionInfo)
        {
            var model = new ApiVersionInfoResponseModel();

            model.SetProperties(boVersionInfo.Version, boVersionInfo.AppliedOn, boVersionInfo.Description);

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

            bo.SetProperties(
                ef.Version,
                ef.AppliedOn,
                ef.Description);
            return(bo);
        }
Example #3
0
        public virtual VersionInfo MapBOToEF(
            BOVersionInfo bo)
        {
            VersionInfo efVersionInfo = new VersionInfo();

            efVersionInfo.SetProperties(
                bo.AppliedOn,
                bo.Description,
                bo.Version);
            return(efVersionInfo);
        }
Example #4
0
        public virtual BOVersionInfo MapModelToBO(
            long version,
            ApiVersionInfoRequestModel model
            )
        {
            BOVersionInfo boVersionInfo = new BOVersionInfo();

            boVersionInfo.SetProperties(
                version,
                model.AppliedOn,
                model.Description);
            return(boVersionInfo);
        }