public void SetNotificationForMultipleUsers(string message, int[] userIds, bool json) { using (var db = new GazDbContext()) { var repo = new UserNotificationRepository(db); repo.AddNotificationForMultipleUsers(userIds, message); repo.Commit(); } }