public static CalendarItem CreateMonth(DateTime month, string tagId)
 {
     CalendarItem item = new CalendarItem();
     item.DateTime = month;
     item.Name = DateTimeFormatInfo.CurrentInfo.GetAbbreviatedMonthName(month.Month);
     var photos = PhotoLibrary.GetPhotosByMonthAndTag(month, tagId);
     var photo = photos.FirstOrDefault();
     if (photo != null)
         item.PhotoId = photo.Id;
     return item;
 }
 public static CalendarItem CreateDay(DateTime d, int month, string tagId)
 {
     CalendarItem item = new CalendarItem();
     if (d.Month == month)
     {
         item.DateTime = d;
         item.Name = d.Day.ToString();
         var photos = PhotoLibrary.GetPhotosByDayAndTag(d, tagId);
         var photo = photos.FirstOrDefault();
         item.Description = photos.Count() + " photos";
         if (photo != null)
         {
             item.PhotoId = photo.Id;
         }
     }
     return item;
 }