public virtual ApiLibraryVariableSetResponseModel MapBOToModel(
            BOLibraryVariableSet boLibraryVariableSet)
        {
            var model = new ApiLibraryVariableSetResponseModel();

            model.SetProperties(boLibraryVariableSet.Id, boLibraryVariableSet.ContentType, boLibraryVariableSet.JSON, boLibraryVariableSet.Name, boLibraryVariableSet.VariableSetId);

            return(model);
        }
Example #2
0
        public virtual BOLibraryVariableSet MapEFToBO(
            LibraryVariableSet ef)
        {
            var bo = new BOLibraryVariableSet();

            bo.SetProperties(
                ef.Id,
                ef.ContentType,
                ef.JSON,
                ef.Name,
                ef.VariableSetId);
            return(bo);
        }
Example #3
0
        public virtual LibraryVariableSet MapBOToEF(
            BOLibraryVariableSet bo)
        {
            LibraryVariableSet efLibraryVariableSet = new LibraryVariableSet();

            efLibraryVariableSet.SetProperties(
                bo.ContentType,
                bo.Id,
                bo.JSON,
                bo.Name,
                bo.VariableSetId);
            return(efLibraryVariableSet);
        }
        public virtual BOLibraryVariableSet MapModelToBO(
            string id,
            ApiLibraryVariableSetRequestModel model
            )
        {
            BOLibraryVariableSet boLibraryVariableSet = new BOLibraryVariableSet();

            boLibraryVariableSet.SetProperties(
                id,
                model.ContentType,
                model.JSON,
                model.Name,
                model.VariableSetId);
            return(boLibraryVariableSet);
        }