예제 #1
0
        public virtual BOSpecies MapEFToBO(
            Species ef)
        {
            var bo = new BOSpecies();

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

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