Esempio n. 1
0
        public virtual BOSpecies MapEFToBO(
            Species ef)
        {
            var bo = new BOSpecies();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Esempio n. 2
0
        public virtual BOSpecies MapModelToBO(
            int id,
            ApiSpeciesRequestModel model
            )
        {
            BOSpecies boSpecies = new BOSpecies();

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