Exemplo n.º 1
0
        public virtual BOCommunityActionTemplate MapEFToBO(
            CommunityActionTemplate ef)
        {
            var bo = new BOCommunityActionTemplate();

            bo.SetProperties(
                ef.Id,
                ef.ExternalId,
                ef.JSON,
                ef.Name);
            return(bo);
        }
Exemplo n.º 2
0
        public virtual BOCommunityActionTemplate MapModelToBO(
            string id,
            ApiCommunityActionTemplateRequestModel model
            )
        {
            BOCommunityActionTemplate boCommunityActionTemplate = new BOCommunityActionTemplate();

            boCommunityActionTemplate.SetProperties(
                id,
                model.ExternalId,
                model.JSON,
                model.Name);
            return(boCommunityActionTemplate);
        }