public async Task <bool> HasAccessAsync(string deviceId, string userId) { return(await deviceRepository.BelongsToAsync(deviceId, userId)); }