private DigitalOutputViewDTO FormatOutputViewEntityToDTOEntity(DigitalOutputViewEntity formatedResult) { return(new DigitalOutputViewDTO() { pin = formatedResult.pin, state = formatedResult.state == "ON" ? true : false, }); }
private DigitalOutputViewDTO MapInternalToExternal(DigitalOutputViewEntity entity) { return(new DigitalOutputViewDTO() { pin = entity.pin, state = entity.state.ToUpper() == "ON" ? true : false }); }