user list cleanup
This commit is contained in:
parent
72bf0f458d
commit
5f12e17907
5 changed files with 96 additions and 23 deletions
|
|
@ -5,16 +5,6 @@ using Yavsc.Models;
|
|||
|
||||
namespace Yavsc.Templates
|
||||
{
|
||||
public static class TemplateConstants
|
||||
{
|
||||
public static readonly Dictionary<string, Func<ApplicationUser, bool>> Criterias =
|
||||
new Dictionary<string, Func<ApplicationUser, bool>>
|
||||
{
|
||||
{ "allow-monthly", u => u.AllowMonthlyEmail },
|
||||
{ "email-not-confirmed", u => !u.EmailConfirmed && u.DateCreated < DateTime.Now.AddDays(-7) }
|
||||
};
|
||||
}
|
||||
|
||||
public abstract class UserOrientedTemplate: Template
|
||||
{
|
||||
public ApplicationUser User { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue