public async Task <IActionResult> Delete(int id) { var device = await devicesRepository.FindByIdAsync(id); devicesRepository.Remove(device); await devicesRepository.CommitAsync(); return(Ok()); }
public async Task <EntityState> Remove(string userId, string bluetoothAddress) { return(await _devicesRepository.Remove(userId, bluetoothAddress)); }