Created
November 26, 2012 23:42
-
-
Save jonnii/4151403 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Application : IIdentifiable | |
{ | |
public ObjectId Id { get; set; } | |
public string Name { get; set; } | |
public string Environment { get; set; } | |
public long TotalMessages { get; set; } | |
public string EmailForNotifications { get; set; } | |
public DateTime? LastMessage { get; set; } | |
[BsonIgnore] | |
public bool ShouldSendEmails | |
{ | |
get { return !string.IsNullOrWhiteSpace(EmailForNotifications); } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment