Example #1
0
        public Animales createAnimales(AnimalesDTO animalDTOToCreate)
        {
            Animales animal = new Animales();

            animal.Nombre  = animalDTOToCreate.nombre;
            animal.Especie = animalDTOToCreate.especie;
            animal.Edad    = animalDTOToCreate.edad;
            animal.Id      = animalDTOToCreate.id;

            return(animal);
        }
Example #2
0
        public AnimalesDTO createAnimalesDTO(Animales animalToCreate)
        {
            AnimalesDTO animal = new AnimalesDTO();

            animal.nombre  = animalToCreate.Nombre;
            animal.especie = animalToCreate.Especie;
            animal.edad    = animalToCreate.Edad;
            animal.id      = animalToCreate.Id;

            return(animal);
        }