Ejemplo n.º 1
0
        public virtual ApiCommunityActionTemplateResponseModel MapBOToModel(
            BOCommunityActionTemplate boCommunityActionTemplate)
        {
            var model = new ApiCommunityActionTemplateResponseModel();

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

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BOCommunityActionTemplate MapEFToBO(
            CommunityActionTemplate ef)
        {
            var bo = new BOCommunityActionTemplate();

            bo.SetProperties(
                ef.Id,
                ef.ExternalId,
                ef.JSON,
                ef.Name);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual CommunityActionTemplate MapBOToEF(
            BOCommunityActionTemplate bo)
        {
            CommunityActionTemplate efCommunityActionTemplate = new CommunityActionTemplate();

            efCommunityActionTemplate.SetProperties(
                bo.ExternalId,
                bo.Id,
                bo.JSON,
                bo.Name);
            return(efCommunityActionTemplate);
        }
Ejemplo n.º 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);
        }