public TimerDisplayModel(RecentJira recentJira) { Timer = null; Reference = recentJira.JiraReference; Description = recentJira.JiraName; ParentReference = recentJira.JiraParentReference; ParentDescription = recentJira.JiraParentName; HasParent = !string.IsNullOrWhiteSpace(recentJira.JiraParentReference); }
public JiraIssueDisplayModel(RecentJira recentJira) { Reference = recentJira.JiraReference; Description = recentJira.JiraName; if (!string.IsNullOrWhiteSpace(recentJira.JiraParentReference)) { ParentReference = recentJira.JiraParentReference; ParentDescription = recentJira.JiraParentName; } }