Example #1
0
        internal Conveyor ConvertConveyor(ConveyorDto conveyorDto)
        {
            var conveyor = new Conveyor()
            {
                Name        = conveyorDto.Name,
                Description = conveyorDto.Description
            };

            return(conveyor);
        }
Example #2
0
        internal ConveyorDto ConvertConveyor(Conveyor conveyor)
        {
            var conveyorDto = new ConveyorDto()
            {
                Id              = conveyor.Id,
                Name            = conveyor.Name,
                Description     = conveyor.Description,
                EquipmentsCount = conveyor.Equipments.Count
            };

            return(conveyorDto);
        }