Ejemplo n.º 1
0
 private static string SetEmailAlertsUrlWithTopicId(Newsroom newsroom, string url)
 {
     return(!string.IsNullOrEmpty(newsroom.EmailAlertsTopicId) ? string.Concat(url, "?topic_id=", newsroom.EmailAlertsTopicId) : url);
 }
Ejemplo n.º 2
0
 internal void AddNews(Newsroom newsRoom)
 {
     Newsroom = newsRoom;
 }
Ejemplo n.º 3
0
 public NewsroomViewModel(Newsroom newsroom, string emailAlertsUrl)
 {
     Newsroom       = newsroom;
     EmailAlertsUrl = SetEmailAlertsUrlWithTopicId(newsroom, emailAlertsUrl);
 }