Ejemplo n.º 1
0
 public BreederStationDataLayer.Orm.Dto.AnimalGroup mapDomainToDtoObject(AnimalGroup animalGroup)
 {
     BreederStationDataLayer.Orm.Dto.AnimalGroup dtoAnimalGroup = new BreederStationDataLayer.Orm.Dto.AnimalGroup
     {
         Id           = animalGroup.Id,
         Description  = animalGroup.Description,
         AnimalsInfo  = animalGroup.AnimalsInfo,
         BreedersInfo = animalGroup.BreedersInfo
     };
     return(dtoAnimalGroup);
 }
Ejemplo n.º 2
0
        public AnimalGroup mapDtoToDomainObject(BreederStationDataLayer.Orm.Dto.AnimalGroup dtoAnimalGroup)
        {
            AnimalGroup aninalGroup = new AnimalGroup
            {
                Id           = dtoAnimalGroup.Id,
                Description  = dtoAnimalGroup.Description,
                AnimalsInfo  = dtoAnimalGroup.AnimalsInfo,
                BreedersInfo = dtoAnimalGroup.BreedersInfo
            };

            return(aninalGroup);
        }