Exemple #1
0
 public override bool IsValid(object value)
 {
     using (RoomaxDbContext db = new RoomaxDbContext())
     {
         return(!db.Users.Any(x => x.Mail == value.ToString()));
     }
 }