Exemplo n.º 1
0
 public Interior ConvertInterior(InteriorDTO interiorDTO)
 {
     return(new Interior
     {
         Id = interiorDTO.Id,
         Name = interiorDTO.Name,
         Colour = interiorDTO.Colour,
         Material = interiorDTO.Material,
         Price = interiorDTO.Price,
         Producer = interiorDTO.Producer
     });
 }
Exemplo n.º 2
0
        public InteriorDTO ConvertTOInteriorDTO(Interior interior)
        {
            InteriorDTO interiorDTO = new InteriorDTO()
            {
                Id       = interior.Id,
                Name     = interior.Name,
                Colour   = interior.Colour,
                Material = interior.Material,
                Price    = interior.Price,
                Producer = interior.Producer
            };

            return(interiorDTO);
        }