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