Esempio n. 1
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);
        }
        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);
        }