public async Task <NotificationSettingsDto> GetByEmployeeId(int employeeId)
        {
            var notificationSettings = await _notificationSettingsRepository.GetByEmployeeId(employeeId);

            var notificationSettingsDto = _mapper.Map <NotificationSettingsDto>(notificationSettings);

            return(notificationSettingsDto);
        }
Beispiel #2
0
        private async Task <bool> ShouldBroadcast(int employeeId)
        {
            var notificationSettings = await _notificationSettingsRepository.GetByEmployeeId(employeeId);

            if (notificationSettings.BroadcastOwnBirthday)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }