Exemple #1
0
        public virtual BOTable MapEFToBO(
            Table ef)
        {
            var bo = new BOTable();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual BOTable MapModelToBO(
            int id,
            ApiTableRequestModel model
            )
        {
            BOTable boTable = new BOTable();

            boTable.SetProperties(
                id,
                model.Name);
            return(boTable);
        }