private async Task SavePrioritiesAsync(Battery battery, List <Priority> priorities)
        {
            foreach (var priority in priorities)
            {
                priority.BatteryId = battery.Id;
                priority.OwnerId   = battery.OwnerId;

                await _priorityService.AddAsync(priority);
            }
        }