public virtual ApiVariableSetResponseModel MapBOToModel(
            BOVariableSet boVariableSet)
        {
            var model = new ApiVariableSetResponseModel();

            model.SetProperties(boVariableSet.Id, boVariableSet.IsFrozen, boVariableSet.JSON, boVariableSet.OwnerId, boVariableSet.RelatedDocumentIds, boVariableSet.Version);

            return(model);
        }
        public virtual BOVariableSet MapEFToBO(
            VariableSet ef)
        {
            var bo = new BOVariableSet();

            bo.SetProperties(
                ef.Id,
                ef.IsFrozen,
                ef.JSON,
                ef.OwnerId,
                ef.RelatedDocumentIds,
                ef.Version);
            return(bo);
        }
        public virtual VariableSet MapBOToEF(
            BOVariableSet bo)
        {
            VariableSet efVariableSet = new VariableSet();

            efVariableSet.SetProperties(
                bo.Id,
                bo.IsFrozen,
                bo.JSON,
                bo.OwnerId,
                bo.RelatedDocumentIds,
                bo.Version);
            return(efVariableSet);
        }
        public virtual BOVariableSet MapModelToBO(
            string id,
            ApiVariableSetRequestModel model
            )
        {
            BOVariableSet boVariableSet = new BOVariableSet();

            boVariableSet.SetProperties(
                id,
                model.IsFrozen,
                model.JSON,
                model.OwnerId,
                model.RelatedDocumentIds,
                model.Version);
            return(boVariableSet);
        }