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

            bo.SetProperties(
                ef.Id,
                ef.Type);
            return(bo);
        }
예제 #2
0
        public virtual BOPostTypes MapModelToBO(
            int id,
            ApiPostTypesRequestModel model
            )
        {
            BOPostTypes boPostTypes = new BOPostTypes();

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