public virtual ApiPostTypeResponseModel MapBOToModel(
            BOPostType boPostType)
        {
            var model = new ApiPostTypeResponseModel();

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

            return(model);
        }
Exemple #2
0
        public virtual BOPostType MapEFToBO(
            PostType ef)
        {
            var bo = new BOPostType();

            bo.SetProperties(
                ef.Id,
                ef.Type);
            return(bo);
        }
Exemple #3
0
        public virtual PostType MapBOToEF(
            BOPostType bo)
        {
            PostType efPostType = new PostType();

            efPostType.SetProperties(
                bo.Id,
                bo.Type);
            return(efPostType);
        }
        public virtual BOPostType MapModelToBO(
            int id,
            ApiPostTypeRequestModel model
            )
        {
            BOPostType boPostType = new BOPostType();

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