Пример #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var device = await devicesRepository.FindByIdAsync(id);

            devicesRepository.Remove(device);

            await devicesRepository.CommitAsync();

            return(Ok());
        }
Пример #2
0
 public async Task <EntityState> Remove(string userId, string bluetoothAddress)
 {
     return(await _devicesRepository.Remove(userId, bluetoothAddress));
 }