예제 #1
0
        public async Task <IActionResult> Delete(Guid id)
        {
            if (OrganisationId == Guid.Empty)
            {
                return(Forbid());
            }
            await _sensorService.DeleteAsync(id, OrganisationId);

            return(NoContent());
        }
예제 #2
0
        public async Task <IActionResult> Delete(string mac)
        {
            await _sensorService.DeleteAsync(mac, CancellationToken.None);

            return(NoContent());
        }