Exemple #1
0
        public static externalDTO.Breed MapFromInternal(internalDTO.Breed breed)
        {
            var res = breed == null ? null : new externalDTO.Breed
            {
                Id        = breed.Id,
                BreedName = breed.BreedName
            };

            return(res);
        }
Exemple #2
0
        public static internalDTO.Breed MapFromDAL(externalDTO.Breed breed)
        {
            var res = breed == null ? null : new internalDTO.Breed
            {
                Id        = breed.Id,
                BreedName = new internalDTO.MultiLangString(breed.BreedName)
            };

            return(res);
        }