user list cleanup
This commit is contained in:
parent
72bf0f458d
commit
5f12e17907
5 changed files with 96 additions and 23 deletions
|
|
@ -17,6 +17,7 @@ using Yavsc.Templates;
|
|||
using Yavsc.Abstract.Templates;
|
||||
using Yavsc.Services;
|
||||
using Yavsc.Abstract.Manage;
|
||||
using Yavsc.Server.Settings;
|
||||
|
||||
namespace cli.Services
|
||||
{
|
||||
|
|
@ -61,12 +62,14 @@ namespace cli.Services
|
|||
}
|
||||
|
||||
|
||||
public void SendEmailFromCriteria(string templateCode, Func<ApplicationUser,bool> criteria)
|
||||
public void SendEmailFromCriteria(string templateCode)
|
||||
{
|
||||
string className = "GeneratedTemplate";
|
||||
|
||||
string subtemp = stringLocalizer["MonthlySubjectTemplate"].Value;
|
||||
|
||||
Func<ApplicationUser,bool> criteria = UserPolicies.Criterias[templateCode];
|
||||
|
||||
logger.LogInformation($"Generating {subtemp}[{className}]");
|
||||
|
||||
var templateInfo = dbContext.MailingTemplate.FirstOrDefault(t => t.Id == templateCode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue