public async Task <IActionResult> Delete(Guid id) { if (OrganisationId == Guid.Empty) { return(Forbid()); } await _sensorService.DeleteAsync(id, OrganisationId); return(NoContent()); }
public async Task <IActionResult> Delete(string mac) { await _sensorService.DeleteAsync(mac, CancellationToken.None); return(NoContent()); }