コード例 #1
0
        public virtual ApiCommunityActionTemplateResponseModel MapBOToModel(
            BOCommunityActionTemplate boCommunityActionTemplate)
        {
            var model = new ApiCommunityActionTemplateResponseModel();

            model.SetProperties(boCommunityActionTemplate.Id, boCommunityActionTemplate.ExternalId, boCommunityActionTemplate.JSON, boCommunityActionTemplate.Name);

            return(model);
        }
コード例 #2
0
        public virtual BOCommunityActionTemplate MapEFToBO(
            CommunityActionTemplate ef)
        {
            var bo = new BOCommunityActionTemplate();

            bo.SetProperties(
                ef.Id,
                ef.ExternalId,
                ef.JSON,
                ef.Name);
            return(bo);
        }
コード例 #3
0
        public virtual CommunityActionTemplate MapBOToEF(
            BOCommunityActionTemplate bo)
        {
            CommunityActionTemplate efCommunityActionTemplate = new CommunityActionTemplate();

            efCommunityActionTemplate.SetProperties(
                bo.ExternalId,
                bo.Id,
                bo.JSON,
                bo.Name);
            return(efCommunityActionTemplate);
        }
コード例 #4
0
        public virtual BOCommunityActionTemplate MapModelToBO(
            string id,
            ApiCommunityActionTemplateRequestModel model
            )
        {
            BOCommunityActionTemplate boCommunityActionTemplate = new BOCommunityActionTemplate();

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