public async Task AddNotificationAsync(Guid buildId, string channelId, WatchLevel watchLevel) { var notification = new NotificationDetails(buildId, channelId, watchLevel); logger.LogInformation($"Adding notification: '{notification}'"); notificationDb.Add(notification); await notificationDb.SaveChangesAsync(); }
public NotificationDetails(Guid buildId, string channelId, WatchLevel watchLevel) { BuildId = buildId; ChannelId = channelId; WatchLevel = watchLevel; }