public async Task <IActionResult> SetDLMState(SetDLMStateViewModel model) { if (ModelState.IsValid) { if (await _mqtt.PublishLockCommand(model.DLMId, model.Locked)) { return(Ok()); } } return(BadRequest(ModelState)); }
public async Task <IActionResult> SetDLMState(SetDLMStateViewModel model) { if (ModelState.IsValid) { if (await _mqtt.PublishLockCommand(model.DLMId, model.Locked)) { return(Ok()); } } return(BadRequest(ModelState)); }