Ejemplo n.º 1
0
        public Return SendNotificationToAdministrators(string message, string subject, List <User> toAdministrators = null)
        {
            if (toAdministrators == null)
            {
                toAdministrators = new List <User>();
            }

            toAdministrators.AddRange(UsersMapper.GetAllByRoleEnum(RoleEnum.Administrator));

            return(SendEmailToUsers(toAdministrators, subject, message));
        }