Beispiel #1
0
        public virtual ApiPostTypesResponseModel MapBOToModel(
            BOPostTypes boPostTypes)
        {
            var model = new ApiPostTypesResponseModel();

            model.SetProperties(boPostTypes.Id, boPostTypes.Type);

            return(model);
        }
        public virtual BOPostTypes MapEFToBO(
            PostTypes ef)
        {
            var bo = new BOPostTypes();

            bo.SetProperties(
                ef.Id,
                ef.Type);
            return(bo);
        }
        public virtual PostTypes MapBOToEF(
            BOPostTypes bo)
        {
            PostTypes efPostTypes = new PostTypes();

            efPostTypes.SetProperties(
                bo.Id,
                bo.Type);
            return(efPostTypes);
        }
Beispiel #4
0
        public virtual BOPostTypes MapModelToBO(
            int id,
            ApiPostTypesRequestModel model
            )
        {
            BOPostTypes boPostTypes = new BOPostTypes();

            boPostTypes.SetProperties(
                id,
                model.Type);
            return(boPostTypes);
        }