Exemple #1
0
        public virtual BOPostType MapEFToBO(
            PostType ef)
        {
            var bo = new BOPostType();

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

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