Example #1
0
        private EmailCredentialModel GetEmailCredentials(EmailFromType type)
        {
            switch (type)
            {
            case EmailFromType.Accounts:
                return(_configurationService.GetAccountsEmailCredentials());

            default:
                throw new Exception($"{type.ToString()} is not a valid");
            }
        }