public virtual ApiActionTemplateResponseModel MapBOToModel(
            BOActionTemplate boActionTemplate)
        {
            var model = new ApiActionTemplateResponseModel();

            model.SetProperties(boActionTemplate.Id, boActionTemplate.ActionType, boActionTemplate.CommunityActionTemplateId, boActionTemplate.JSON, boActionTemplate.Name, boActionTemplate.Version);

            return(model);
        }
        public virtual BOActionTemplate MapEFToBO(
            ActionTemplate ef)
        {
            var bo = new BOActionTemplate();

            bo.SetProperties(
                ef.Id,
                ef.ActionType,
                ef.CommunityActionTemplateId,
                ef.JSON,
                ef.Name,
                ef.Version);
            return(bo);
        }
        public virtual ActionTemplate MapBOToEF(
            BOActionTemplate bo)
        {
            ActionTemplate efActionTemplate = new ActionTemplate();

            efActionTemplate.SetProperties(
                bo.ActionType,
                bo.CommunityActionTemplateId,
                bo.Id,
                bo.JSON,
                bo.Name,
                bo.Version);
            return(efActionTemplate);
        }
        public virtual BOActionTemplate MapModelToBO(
            string id,
            ApiActionTemplateRequestModel model
            )
        {
            BOActionTemplate boActionTemplate = new BOActionTemplate();

            boActionTemplate.SetProperties(
                id,
                model.ActionType,
                model.CommunityActionTemplateId,
                model.JSON,
                model.Name,
                model.Version);
            return(boActionTemplate);
        }